Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have created a login script, login.bat. There are only two command being run. First is a Route Add command, which works. The second is a Net Use command that I am using to map a drive. The Net Use command works when I use any drive letter other than Z:. Why is this? I get a message that says something to the effect of "Z: is already in use... \\servername\netlogon do you want to continue?" Even if I say yes and continue it still does not work. Any thoughts? I would prefer to use Z:, but if I have to I can switch it to something else.
Thanks,
Tom

" "Z: is already in use " means something hass assigned Z: to a resource.
like a local mapping from the Connect to Network Drive option (with the reconnect at login feature enabled)
if the script says it's assigned, then some where, some how, the Z: drive is already eing occupied.

What you can do is log in, go to MY COMPUTER, and see if anything is already mapped to the Z drive.
If there isn't, or it's pointed to the place you want it to go to, then you can add this to your login script:
NET USE Z: /DELETE
NET USE Z: \\servername\sharenameThe first one deletes any previous mapping, the second line creates it fresh.
HTH
-Dave C

It's not documented but when you log on to a NT server, the Z: drive is automatically mapped to the netlogon share of the server(c:\winnt\repl\import\scripts) This is where the logon scripts are usually kept.
Only after the logon process can this drive letter be used.
- Mike

c:\winnt\repl\import\scripts that's for NT 4.0
Windows 2000 doesn't use that path. I've used Net Use z: \\server\sahre in login script with no Problems (for NT 2000 and XP). So I'm sure that's valid for 2000 Server with 2000 pro and XP clients

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |