When I try to run the following script:

strRemoteComputer = "COMPUTER.NAME"
strWorkerScript = "Set_Default_Printer.vbs"
Set objWshController = WScript.CreateObject("WshController")
Set objRemoteScript = objWshController.CreateScript(strWorkerScript,
strRemoteComputer)
objRemoteScript.Execute

I get the following error:
---------------------------
Windows Script Host
---------------------------
Script:
Line: 4
Char: 1
Error: ActiveX component can't create object
Code: 800A01AD
Source: Microsoft VBScript runtime error



Any ideas on what I can do to solve this would be very welcome. I have
Administrative permission on the target computer so I'm pretty sure that is
not the culprit. The local script is in the same directory as the remote
run script too.

Thanks in advanced!

Mike A.

Re: Active X component can't create object by Justin

Justin
Wed Jul 21 17:59:19 CDT 2004

Mike A. wrote:
> When I try to run the following script:
>
> strRemoteComputer = "COMPUTER.NAME"
> strWorkerScript = "Set_Default_Printer.vbs"
> Set objWshController = WScript.CreateObject("WshController")
> Set objRemoteScript = objWshController.CreateScript(strWorkerScript,
> strRemoteComputer)
> objRemoteScript.Execute
>
> I get the following error:
> ---------------------------
> Windows Script Host
> ---------------------------
> Script:
> Line: 4
> Char: 1
> Error: ActiveX component can't create object
> Code: 800A01AD
> Source: Microsoft VBScript runtime error

On the remote computer, check the registry key,
"HKLM\SOFTWARE\Microsoft\Windows Script Host\Settings" for a string
value named "Remote". If it is missing, that would cause the error you
describe. It should be set to "1".

--
Justin Piper
Bizco Technologies
http://www.bizco.com/