I'm new to Scripting,
I'm having a problem with this script: This is a script cut from the
MSDN website and I just cant get it to work. I did some searches and I did
enable the registry setting "remote=1" The error I receive: Microsoft
VBScript runtime error: ActiveX component can't create object. And sometimes
I receive: "(null): Catastrophic failure", even when I try to run the script
locally I still receive the same error. I'm really trying to learn this but
I have been working on this problem alone for five hours and I dont know
what else to try. I am running XP pro and Win2k Pro both with WSH 5.6
Thanks in Advance
Frank A, Zanotti
fzanotti@panix.com

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

Do While RemoteScript.Status <> 2
WScript.Sleep 100
Loop*****Seperate Script*****Test01.vbs:Set objNetwork =
CreateObject("WScript.Network")objNetwork.MapNetworkDrive "x:",
\\server01\share

Re: RemoteScript by gaurav081

gaurav081
Mon Dec 29 09:32:20 CST 2003

try this friend hope it works for you..

sDomainUser = "doamin server\user name"
sPswd = "something"

Set oNetwork = CreateObject("Wscript.Network")

oNetwork.MapNetworkDrive _
"Y:", "\\server\netlogon\some folder",, sDomainUser, sPswd

"Frank A, Zanotti" <fzanotti@panix.com> wrote in message news:<bsbcdc$fta$1@reader2.panix.com>...
> I'm new to Scripting,
> I'm having a problem with this script: This is a script cut from the
> MSDN website and I just cant get it to work. I did some searches and I did
> enable the registry setting "remote=1" The error I receive: Microsoft
> VBScript runtime error: ActiveX component can't create object. And sometimes
> I receive: "(null): Catastrophic failure", even when I try to run the script
> locally I still receive the same error. I'm really trying to learn this but
> I have been working on this problem alone for five hours and I dont know
> what else to try. I am running XP pro and Win2k Pro both with WSH 5.6
> Thanks in Advance
> Frank A, Zanotti
> fzanotti@panix.com
>
> Dim Controller, RemoteScript
> Set Controller = WScript.CreateObject("WSHController")
> Set RemoteScript = Controller.CreateScript("test01.vbs", "server01")
> RemoteScript.Execute
>
> Do While RemoteScript.Status <> 2
> WScript.Sleep 100
> Loop*****Seperate Script*****Test01.vbs:Set objNetwork =
> CreateObject("WScript.Network")objNetwork.MapNetworkDrive "x:",
> \\server01\share