This is a pretty simple example so you could enhance it to best meet your needs…

 

‘=========================

Set objNet = WScript.CreateObject (“WScript.Network”)

objNet.MapNetworkDrive “Z:”, \\ServerName\SharePoint

‘=========================

 

Here is an example of calling an external app…

 

‘=========================

Set objProg = WScript.CreateObject(“WScript.Shell”)

objProg.Run (“route.bat”)

‘=========================

 

You will need to play with this one a bit. The path is parsed by the windows script host so you can use common environmental variables such as %systemroot% etc.

 

I hope this help.

 

I have many resources for scripting and I am anxiously awaiting the .NET server resource kit which will have a document on administrative scripting. But some examples are VBScript Programmer’s Reference by WROX press and William Stanek’s Windows 2000 Scripting Bible by IDG books. Also, I have a WMI book that I love called Windows Management Instrumentation by Matthew Lavy and Ashley Meggitt from New Riders…

 

Enjoy.

 

 

-----Original Message-----
From: Jochen Andries [mailto:[EMAIL PROTECTED]]
Sent:
Wednesday, September 18, 2002 9:14 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Networkdrive-mapping @ logon

 

I would like to have one posted

 

The only thing I can is doing this from a DOS-prompt L

 

-----Original Message-----
From: Sullivan, Kevin [mailto:[EMAIL PROTECTED]]
Sent: woensdag 18 september 2002 14:22
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Networkdrive-mapping @ logon

 

You can use a startup script and use VBScript to map the drives. You can pretty much call on any command like ‘route’.

 

In the group policy for the container select startup script under computer configuration and point to the VBScript or JScript that you want to use. I will look for examples but I am sure that before I find one someone will post one… It is that kind of group <g>.

 

Kevin

 

-----Original Message-----
From: Jochen Andries [mailto:[EMAIL PROTECTED]]
Sent:
Wednesday, September 18, 2002 8:08 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] Networkdrive-mapping @ logon

 

Hello all,

 

Is there a way I can configure to map drives at startup ?  But more than 1 mapping.

 

Also can I put in this same “file” other commands ? (Like “route add …….”)

 

 

Greetings,

 

Jochen Andries

Jabbeke Belgium

Reply via email to