I have a vbscript that I run on my computer. This script checks to see if another script resides on a server. If not it will copy the script to the server at C:\. Once the script is there it should initiate the script to run on the remote server. I do have admin rights on my computer and the server. I have verified that the script works while logged onto the server and ran locally. I am using windows XP and the servers are 2003 and 2008.
Everytime I run it I get the attached error message.
Error: Catastrophic failure
Has anyone been able to run a script on a remote computer?
Function RunRemoteScript(strVBScript, strComputer)
Set objWshController = CreateObject("WshController")
strRunScript = "\\" & strComputer & "\C$\ApplyUpdates2.vbs"
Set objRemoteScript = objWshController.CreateScript(strRunScript, strComputer)
While objRemoteScript.Status <> 2