Discussion Locked

The elephant never forgets

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a domain contoller & 4 Citrix servers(NT46a-MF1.8). I recently changed the logon scripts to use another "M" drive. Now I'm having to login as every user and disconnect the old "M" drive, log out and back in before the new "M" will show. I'vetriple checked all my scripts, my BDC scripts, sync't my domain, What else???

5 replies

by syscokid

Add a line at the beginning of your logon script:

net use M: /d

to remove any existing drive mapping to M before the new mapping occurs.

by crhinehart

Good answer. WinNT (and Win2K) don't have a net use command that can both disconnect an existing drive mapping and reconnect another. With Win9x you could do this with a command like:
NET USE X: \\SERVER\SHARE /YES

However with WinNT and Win2K, this must be done with two separate commands. Since your login scripts are running through Citrix (and therefore NT), you must use two commands, like so:
NET USE X: /DELETE
NET USE X: \\SERVER\SHARE

This discussion is closed to new replies.