Hi All,
I am getting an issue with one of our script in AutoIT, RunASWait command seems not working in some of the Win 7 machine.
$Return=RunAsWait($UserArray[2],$UserArray[1],$Pass,0,@ComSpec & " /c " & Chr(34) & $BatchFile & Chr(34),"C:\Temp", @SW_SHOW)
I have tried on different machine with same user privileges, but it works on some machines and did not work on some. it dosen't throw any error but remote machine is not rebooting.
Please advice if any thing is funny in this code.
Regards,
Rajesh Suyal.
I am getting an issue with one of our script in AutoIT, RunASWait command seems not working in some of the Win 7 machine.
$Return=RunAsWait($UserArray[2],$UserArray[1],$Pass,0,@ComSpec & " /c " & Chr(34) & $BatchFile & Chr(34),"C:\Temp", @SW_SHOW)
I have tried on different machine with same user privileges, but it works on some machines and did not work on some. it dosen't throw any error but remote machine is not rebooting.
Please advice if any thing is funny in this code.
Regards,
Rajesh Suyal.