- How to rename network drives in a logon script?
- Posted by chrbar on May 21st, 2008
Hi,
I've used a script in the past, but I don't remember it!
I think it was a batch file in a logon script.
It was a script which allow to rename the network drives with a choosen
name, instead of the default name.
Network drive with default name looks like:
temp$ on 'ghost1' (T:\)
Network drive renamed looks like:
Temporary Files (T:\)
Do you know which script can I use to do that?
Thanks,
Chris
- Posted by Bjarne Duelund on May 21st, 2008
Hi,
This one have I seen work
'----------------------------------------------------------------
Set objNetwork = Wscript.CreateObject("WScript.Network")
set oShellApp=CreateObject("Shell.Application")
objNetwork.MapNetworkDrive "T:", "\\ghost1\temp$"
oShellApp.NameSpace("T:").Self.Name = "Temporary Files"
'----------------------------------------------------------------
Just change the two last lines for further mapping/renaming.
- Bjarne Duelund
"chrbar" <chrbar@discussions.microsoft.com> skrev i meddelelsen
news:C2478355-FD5B-4696-A79D-D61B5CF05011@microsoft.com...
- Network path not found when mapping network drives via logon script (Windows Server) by roberto.banfi@email.it
- Location of a network logon script (Windows Server) by Owen@7
- map drives in logon script? (Windows Server) by shelly
- Rename a network share or drive through a script (Windows 2000) by Mike Legge
- connecting to network printer with logon script (Windows 2000) by Dajo Rybski

