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", "")