net use


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.
 
Ad

Advertisements

P

Pegasus \(MVP\)

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
 
Ad

Advertisements


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