Logon Script question

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
 
R

Ray at

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
 
T

techsupport

Go to the 'userlogon' cmd script in winnt/system32 and
modify it ---- back it up first.
good luck Sal
 
T

Thanatos

The USRLOGON.CMD script in the %Systemroot%\System32 directory is only used
by the TELNET Server service.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top