All Forums >> [Scripting] >> WSH & Client Side VBScript >> WSHRemote: Running a script on a remote machine Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I'm trying to run a script on a remote machine using the WshController object. The local script is listed below, and the script called "localcpu.vbs" which should be running on the remote machine uses WMI to query two specific processes for cpu load and write the results to a file.
The problem is that there is no error, the script seems to be running, but nothing happens on the remote machine. The script localcpu.vbs is only present on the local machine.
Some thing I already tried:
1. removing the Remote key from the remote machine's registry. that had the effect of producing an error while creating the script object - which leads me to believe that when the registry key is there the connection is working fine.
2. removing the remote machine name parameter. the result is the script is running on the local machine (successfully).
Thats it. I'm lost here. Any ideas will be greatly appreciated.