Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disconnect Networked Drives Script

Status
Not open for further replies.

Paul318

Technical User
Aug 10, 2001
53
GB
Is there a script that will disconnect a networked drives on logoff?
I'm trying to apply new logon scripts mapping a fresh set of networked drives but they seem to mix up and keep some of the old.

Thanks
Paul
 
No need...

Net Use /Delete G: {where G = drive map}
 
Also you could put at the end of the login script that looks like this

net use u: \\SERVER\MAPPEDDRIVE PERSISTENT:NO


This will disconnect the drive after the person logs out.


Jason
 
You can put this in the beginning of the script to disconnect all the mappings:

net use * /delete /Y
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top