Sorry about the formatting... I am adding _ to designate a line break.

-----Original Message-----
From: Sullivan, Kevin 
Sent: Wednesday, September 18, 2002 10:35 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Networkdrive-mapping @ logon

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 T

-----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
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to