net use

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

i have logon scripts for all users to map various drives and printers. how
can i get Windows 2000 and XP machines to disable/disconnect these mappings
at log off? Is there a Policy Setting to do this? I can't find it if so.

I would like to use 1 common script if possible but the following command
requires a response i don't want offered to users:
net use * /delete

An error occurs and nothing happens with piping the y.
echo y | net use * /delete

Performing a /delete for each mapping will be labor intensive since my
system requires individual logon scripts.
 
BigDWhite said:
Hello all,

i have logon scripts for all users to map various drives and printers. how
can i get Windows 2000 and XP machines to disable/disconnect these mappings
at log off? Is there a Policy Setting to do this? I can't find it if so.

I would like to use 1 common script if possible but the following command
requires a response i don't want offered to users:
net use * /delete

An error occurs and nothing happens with piping the y.
echo y | net use * /delete

Performing a /delete for each mapping will be labor intensive since my
system requires individual logon scripts.

The command

net use * /del /yes

will disconnect all network drives without a prompt.
A more elegant solution might be to prevent the
workstations from remembering past connections,
by including this line in your logon script:

net use /persistent:no
 
Back
Top