|
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----- I would like to have one posted The only thing I can is doing this from a
DOS-prompt L -----Original Message----- 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----- 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
|
- [ActiveDir] Networkdrive-mapping @ logon Jochen Andries
- [ActiveDir] RIS and XP Joe.Baird
- RE: [ActiveDir] Networkdrive-mapping @ logon David N. Precht
- RE: [ActiveDir] Networkdrive-mapping @ logon Sullivan, Kevin
- RE: [ActiveDir] Networkdrive-mapping @ logon Jochen Andries
- RE: [ActiveDir] Networkdrive-mapping @ logon Sullivan, Kevin
- RE: [ActiveDir] Networkdrive-mapping @ logon Sullivan, Kevin
- RE: [ActiveDir] Networkdrive-mapping @ logon Puckett, Richard
