Login | |
|
 |
Windows 2000 server logon script to map network dr - 2/9/2005 12:28:32 AM
|
|
 |
|
| |
Teknophobia
Posts: 2
Score: 0
Joined: 2/9/2005
From:
Status: offline
|
Want the client PC's to map to a network drive using Group Policy logon, then rename the mapped network drive label to more user-friendly name. For example, instead of - data on 'server_backup' (Y:) i want - Company Data (Y:) I cannot get the user-friendly mapped network drive 'label' to appear on the client PC. The client PC (Win 2K) is mapping the network drives successfully, but is keeping it's default drive label description - data on 'server_backup' (Y:) The scripts that I have copied from various sources all appear to use the same method; here's an example of the one I'm using right now... Option Explicit Dim objNetwork, strDrive, objShell, objUNC Dim strRemotePath, strDriveLetter, strNewName ' strDriveLetter = "Y:" strRemotePath = "\\server_backup\data" strNewName = "Company Data" ' Section to map the network drive Set objNetwork = CreateObject("WScript.Network") objNetwork.MapNetworkDrive strDriveLetter, strRemotePath ' Section which actually (re)names the Mapped Drive Set objShell = CreateObject("Shell.Application") objShell.NameSpace(strDriveLetter & "\").Self.Name = strNewName WScript.Quit The only way I've managed to get it to work, and it's a bit dirty, is by removing the renaming of network drive from the script altogether, and adding a desktop.ini file in the root of the shared drive with the following in it: [.ShellClassInfo] NetShareDisplayName=Company Data InfoTip=Documents and Paperwork pertaining to our Company I got this tip from tacktech (http://www.tacktech.com/display.cfm?ttid=16), but haven't seen anything like it reference elsewhere. Is there any way I can incorporate this into my script as it get's messy when you've got these files in every share, having to lock them down, etc. Thanks in advance.
|
|
| |
|
|
|
|
|