General discussion

Locked

WSH Remote Object Error

By bfishell ·
Hello,

I am trying to run a VBScript remotely using the WshRemote object. Turns out the script bombs out when I try to access the CreateObject method. The error I get is

Error: ActiveX component can't create object
Code: 800A01AD
Source: M1crosoft VBScript runtime error

Here is the code I got from MSDN website

Dim Controller, RemoteScript
Set Controller = WScript.CreateObject("WSHController")
Set RemoteScript = Controller.CreateScript("hello.vbs", "remmachine")


Can anyone help me? Thanks.

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

WSH Remote Object Error

by nikki96 In reply to WSH Remote Object Error

I assume you replaced "remmachine" with an actual machine address?
And that you have permissions on said remote machine to create scripts?

Collapse -

WSH Remote Object Error

by bfishell In reply to WSH Remote Object Error

Poster rated this answer

Collapse -

WSH Remote Object Error

by RRV In reply to WSH Remote Object Error

i understand the createobject failed. check if you have wshom.ocx file in your system folder. it should be 88kb. after a period of time suddenly this becomes 105kb and in that case this error comes. so u need to unregister it and replace with the new one restart PC and register it again. Use any script debugging tool to find it for yourself.

RV

Collapse -

WSH Remote Object Error

by bfishell In reply to WSH Remote Object Error

Thank you. Your input was helpful.

Collapse -

WSH Remote Object Error

by bfishell In reply to WSH Remote Object Error

This question was closed by the author

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums