How to delete all mapped drives in Windows 7 using group policy?

dantali0n
dantali0n used Ask the Experts™
on
Does anyone know how to delete/remove/disconnect preexisting mapped drives in Windows 7 using group policy?  It's easy to add/replace them with a GP, but how do you mass-delete all existing mapped drives?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2011
Top Expert 2011

Commented:
Reg delete "hkcu\network" /f

In a login script.....
Try using * to delete shares. The followiong does it with net use

http://forums.techguy.org/networking/588172-how-remove-obsolete-mapped-drives.html
net use * /d /y

We ran into a few problems when we tried to delete mapped drives w net use in logon script. We noticed that login script would run after the GPO trying to add/remove mapped drives.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial