Hello everyone,
I hope someone could give an advice here. I'm trying to figure out how to run scripts remotely - so, I started slowly with a simplest script, which I can't seem get to work.
"test_3.vbs" script is just supposed to display version of Script Host.
Whenever I run this script I get "permission denied" error at the line with "CreateScript" method. I have admin rights on both host and server machines.
Any help would be greatly appreciated.
Best regards.
I hope someone could give an advice here. I'm trying to figure out how to run scripts remotely - so, I started slowly with a simplest script, which I can't seem get to work.
Code:
Dim Controller, RemoteScript
Set Controller = WScript.CreateObject("WSHController")
WScript.Echo("Connecting...")
Set RemoteScript = Controller.CreateScript("test_3.vbs", "\\H11929")
WScript.Echo("Executing...")
WScript.ConnectObject RemoteScript, "remote_"
RemoteScript.Execute
"test_3.vbs" script is just supposed to display version of Script Host.
Whenever I run this script I get "permission denied" error at the line with "CreateScript" method. I have admin rights on both host and server machines.
Any help would be greatly appreciated.
Best regards.