Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


WSHRemote: Running a script on a remote machine

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1910
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
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!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 WSHRemote: Running a script on a remote machine - 1/26/2005 10:36:58 AM   
  ykarj

 

Posts: 4
Score: 0
Joined: 1/26/2005
From:
Status: offline
Hi,

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.


      
 
 
Post #: 1
 
 Re: WSHRemote: Running a script on a remote machine - 1/27/2005 6:36:32 AM   
  Snipah


Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Change the BOLD part below


      


(in reply to ykarj)
 
 
Post #: 2
 
 Re: WSHRemote: Running a script on a remote machine - 1/27/2005 8:52:43 AM   
  tnoonan

 

Posts: 364
Score: 0
Joined: 12/14/2004
From:
Status: offline
http://www.spoogenet.com/index.php?module=article&view=15&5cbaa9d36385e275f0a415eb9b827618=05b3818e3bc98106cf8ec7f00063f6ce

(in reply to ykarj)
 
 
Post #: 3
 
 Re: WSHRemote: Running a script on a remote machine - 1/27/2005 8:57:15 AM   
  ykarj

 

Posts: 4
Score: 0
Joined: 1/26/2005
From:
Status: offline
quote:
Originally posted by Snipah

Change the BOLD part below


      




(in reply to ykarj)
 
 
Post #: 4
 
 Re: WSHRemote: Running a script on a remote machine - 1/27/2005 1:27:58 PM   
  ykarj

 

Posts: 4
Score: 0
Joined: 1/26/2005
From:
Status: offline
sorry, there was supposed to be an "OH CRAP ;)" at the end there.

anyway, thanks! I'm getting a DCOM error now which should lead me to the solution.

(in reply to ykarj)
 
 
Post #: 5
 
 Re: WSHRemote: Running a script on a remote machine - 1/27/2005 1:59:56 PM   
  ykarj

 

Posts: 4
Score: 0
Joined: 1/26/2005
From:
Status: offline
By the way, the error is: "Loading script 'c:\localcpu.vbs' failed. (the object exporter specified was not found)

If I play around with DCOMCNFG on the remote machine, I manage to get a "Permission Denied" error in some cases.

Any ideas?

(in reply to ykarj)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> WSHRemote: Running a script on a remote machine Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts