Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drive mapping for all users?

Status
Not open for further replies.

katchme

MIS
May 5, 2003
23
US
Hi,

I want to do the following and wondering anyone out there could help me?

I've got a Windows XP machine where I want to map a persistent drive e.g. Z drive so that whoever logon to this PC they will see the Z drive? It is only this PC that I want the Z drive to appear and if the users logon to a different PC they will not see the Z drive. Another words, I want this drive mapping to be PC based not users based.

Because of tight restrictions in our network environment, we don't have the ability to access Active Directory, can't have anything under the startup folder, run command, task schedulers etc...The only options I've got is to modify the registry or use script.

What I want to know is there any registry key under WXP that I can add so that eveyone will see the drive mapping when they logon to the PC? HKEY_CURRENT_USERS will only work for one user. If the other users logon they don't see the same drive mapping on that PC.

thanks

Katchme
 
A mapped share is specific to the logged in user. It is persistent between logons only for that user.
This is what the logon script can be used for.

logon.cmd, created with notepad would have one line added:
net use z: \\share_server\share_name /Persistent:no >nul

(You do not need or want a persistent connection here, as you are doing the persistence yourself with the logon.cmd).

Or as a script, point in Group Policy to logon.vbs which would have the lines:

Dim objNet
Set objNet = CreateObject("Wscript.Network")
objNet.MapNetworkDrive "Z:", "\\share_server\share_name"
WSCript.Quit

Replace share_server and share_name with their actual values in each case.

Troubleshooting scripting in Group Policy Logon Scripts:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top