Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how to automatically disconnnect network drives in xp which are connected during system startup ?

share|improve this question
net use X: \\foo /delete
share|improve this answer

This will delete all drives...

Net Use /delete /y *

share|improve this answer
like this one if you are in an environment where no one has custom mapped drives, as in drives other then those mapped by the login script. If users do have custom mapped drives they usually get pretty angry when to add this to the logon script and delete them. :S – ITGuy24 Oct 26 '09 at 15:07
Very true... I try to keep a tight leash on the network drives in my environment, so it works very well here...! – Jesse Paxson Oct 26 '09 at 17:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.