Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

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.