WSH Remote Object Error - TechRepublic
General discussion
September 5, 2002 at 03:08 AM
bfishell

WSH Remote Object Error

by bfishell . Updated 23 years, 10 months ago

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 discussion is locked

All Comments