Hi,
I want to execute a windows script on remote machine.The script works fine without any error.but the effect on remote machine is not seen.The script i m using is given below:
Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
Dim Controller, RemoteScript
Set Controller = CreateObject("WSHController")
Set RemoteScript = Controller.CreateScript("C:\OpenNotepad.bat", "\\sys096")
WScript.ConnectObject RemoteScript, "remote_"
RemoteScript.Execute
WScript.Sleep 100
Msgbox(RemoteScript.Status)
'''''"Here it returns status as 2 i.e. script executed succesfully"
Do While RemoteScript.Status <> 2
Msgbox(RemoteScript.Status)
WScript.Sleep 100
Loop
wscript.echo "done"
Kindly suggest me the required modifications needed in the script or need to change settings.
Regards
Ishita