Logon Script question

  • Thread starter Thread starter Public Enema
  • Start date Start date
P

Public Enema

Hello

Please help. How do I add something into a logon script to force users
existing drive mappings to be removed before it the performs a net use and
maps it to a new share.

For example we have just upgraded from Winnt4 to W2k and users who try to
log back on still think they are being mapped to the old connections.

We basically want to add a command into the script to force it to stop
connecting and then use the NEt use command to the mapping in the usual way

Many thanks in advance


Nick
 
Public Enema,

net use x: /d
net use x: \\server\theOthershare /p:n

I recommend always using /p:n if drive mapping are controlled via logon
scripts. The /p:n is the same as /persistent:no, which means that the
connection should not be automatically reconnected the next time the user
logs on. Let the logon scripts take care of that. Also, I use:

net use q: /d
net use q: \\server\share /p:n

Like, I will always throw in the /d line (which means delete the mapping) so
that if there is a mapping already for whatever reason, it'll be deleted.

Ray at home
 
Go to the 'userlogon' cmd script in winnt/system32 and
modify it ---- back it up first.
good luck Sal
 
The USRLOGON.CMD script in the %Systemroot%\System32 directory is only used
by the TELNET Server service.
 
Back
Top