GCCCDAdmin Posted June 30, 2008 Share Posted June 30, 2008 Hello, I have an application where I am required via script to perform a RunAs "SYSTEM".My syntax is correct as far as I can tell but the windows authentication system is producing errors in the security event log.I need to temporarily stop a service, but only the SYSTEM account has these privileges with Vscan 8.5i with Access Protection enabled.I am running the latest version of AutoIt and here is my code:RunAs ( "SYSTEM", "NT AUTHORITY", "",0, "C:\windows\SYSTEM32\cmd.exe" & " /c" & " C:\windows\SYSTEM32\net.exe" & " stop mcshield", "C:")The system account has no password, therefore I believe the above code should work, but when I run this the windows security event log reports authentication failures. Event Type: Failure AuditEvent Source: SecurityEvent Category: Logon/Logoff Event ID: 529Date: 6/30/2008Time: 10:06:50 AMUser: NT AUTHORITY\SYSTEMComputer: 51536-GCCCDDescription:Logon Failure: Reason: Unknown user name or bad password User Name: SYSTEM Domain: NT AUTHORITY Logon Type: 2 Logon Process: seclogon Authentication Package: Negotiate Workstation Name: 51536-GCCCDFor more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.So my question is: Is AutoIt capable of performing the RunAs with the "SYSTEM" account and if so, How? Link to comment Share on other sites More sharing options...
LarryDalooza Posted June 30, 2008 Share Posted June 30, 2008 http://www.autoitscript.com/forum/index.ph...sc+create\ AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
ptrex Posted June 30, 2008 Share Posted June 30, 2008 @GCCCDAdminMaybe this can help as well.System Shift, logon as SYSTEM in WinXPThe last post even takes you to a youtube video on HOW TO.Regardsptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now