Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Remote script errors out

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Remote script errors out
  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 >>
 Remote script errors out - 4/4/2005 6:57:06 AM   
  holtitan

 

Posts: 26
Score: 0
Joined: 3/28/2005
From:
Status: offline
I'm trying to run the ping.vbs script on a remote machine. The machine exists and no matter what script I try to execute remotely I get the following error/Code:
ActiveX component can't create object, Code 800A01AD

Is there a .dll file that I'm missing?


Dim Controller, RemoteScript
Set Controller = WScript.CreateObject("WSHController")
Set RemoteScript = Controller.CreateScript("ping.vbs", "computername")
RemoteScript.Execute

Do While RemoteScript.Status <> 2
WScript.Sleep 100
Loop
 
 
Post #: 1
 
 Re: Remote script errors out - 4/4/2005 8:46:10 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
what version of wsh are you using? (locally and remote)
also, if i remember right you have to do some registry hacking to get remote script execution working, have you done this?

(in reply to holtitan)
 
 
Post #: 2
 
 Re: Remote script errors out - 4/4/2005 9:54:42 AM   
  holtitan

 

Posts: 26
Score: 0
Joined: 3/28/2005
From:
Status: offline
I'm running WSH v5.6 locally and not sure remotely (I will check). Whatever is standard on a W2K SP4 machine. I have not added any registry entries to get this to work. If I knew what I needed I could push it out via SMS. Thanks for the help.

(in reply to holtitan)
 
 
Post #: 3
 
 Re: Remote script errors out - 4/4/2005 3:36:43 PM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
i think you have to have wsh v5.6 to do this and here is the link for the registry entry,

http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_ahkp.mspx

(in reply to holtitan)
 
 
Post #: 4
 
 Re: Remote script errors out - 4/5/2005 2:11:06 AM   
  holtitan

 

Posts: 26
Score: 0
Joined: 3/28/2005
From:
Status: offline
Thanks. I'll give this a shot. I appreciate your help.

(in reply to holtitan)
 
 
Post #: 5
 
 Re: Remote script errors out - 4/5/2005 2:21:32 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
no problem :)

(in reply to holtitan)
 
 
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 >> Remote script errors out 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