Jump to content

r1hundy

Members
  • Posts

    3
  • Joined

  • Last visited

r1hundy's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Please be gentle, as I am very very unskilled with AutoIT, although I know what I wish to do with AutoIT, but cannot get my head around the syntax on how to do it I have searched the forums and not found a way to do what I want. I have a vbs script that exports Bitlocker Rcovery keys to ADUC. The issue is that you cannot right click on a vbs script and run as admin. So I can create an AutoIT script to copy the vbs script to the desktop of the machine when the image (Windows 8.1) is deployed from MDT, I also want to have an Auto IT script that will then launch the CMD prompt as admin, run the vbs script, then delete the vbs script and AutoIT script icon when completed. The IT staff will run the AutoIT script manually when configuring the machines. I am sure this can be done, but I am pretty thick when it comes to scripting. Any help would be greatly appreciated.
  2. Hi there, I am totally stuck on how to get Auto It to see that the McAfee Framework Service was stopped successfully in the Command prompt, in order to then stop the McAfee McShield and have USMT kick off a Data Migration. I need this to work seamlessly so that just kicking off the script will automate everything. I have searched the forum and found something about $STDOUT_CHILD, but it is unclear to me as to what I need to do in order to get my script to work. (take pity please, as I have only been using Auto It for about two weeks now) Currently my script looks like the below: Any help or clear idiot (that's me) proof explanations would be greatly appreciated #include <Process.au3> #include <Constants.au3> ; Stop McAfee Framework, McShield and Backup User Data via USMT Local $sUserName = "Username" Local $sPassword = "Password" RunAs($sUserName, @ComputerName, $sPassword, 0, "cmd.exe", @SystemDir, @SW_SHOW) ProcessClose( "fileencryption.exe") WinWaitActive( "C:\WINDOWS\system32\cmd.exe") Send("c:", 1) Send("{ENTER}") Send("cd %WINDIR%\System32", 1) Send("{ENTER}") Send("net stop mcafeeframework", 1) Send("{ENTER}") WinWaitActive( "C:\WINDOWS\system32\cmd.exe", "The McAfee Framework Service service was stopped successfully") Send("net stop mcshield", 1) Send("{ENTER}") WinWaitActive( "C:\WINDOWS\system32\cmd.exe", "The McAfee McShield service was stopped successfully.") WinClose("C:\WINDOWS\system32\cmd.exe", "")
  3. I am lost, I am so new to this it is unbelievable, I can get nothing to launch???? Can someone please explain in the most basic way on how to use this tutorial, thanks.
×
×
  • Create New...