How to remove mapped network drives using group policy?

Posted on 2008-11-11
Last Modified: 2012-05-05

Some shared folders on a file server were previuosly mapped as a network drive to all users through group policy "a script that has been removed"

These "network drives" still show up on Windows Explorer on all client machines

How to remove the reference to each of these drives permenantly

Also , through Active Directory Users and Computers interface , the profile of each user was set to map a shared folder to a drive letter.How can we remove this on all user accounts?

Thank you
Question by:raedaljarrah
    LVL 35

    Expert Comment

    by:Joseph Daly
    well you could use a batch file with something like.

    net use f: /d

    Substituting F for your drive letter.
    LVL 35

    Accepted Solution

    or you could even add that line to existing login scripts if you have any. If you have multiple different mapped drives simply add extra lines and substituting F for each drive letter.
    LVL 24

    Assisted Solution

    Get the mapped drive names (eg, X, Y, Z)

    Open notepad
    Type net use driver: /d.
    Use the same format for all the drives.
    Save file as deltedrives.bat (Make sure you select "all files" when you save).

    Configure a group policy to run a logon script and point to this script. explains the process.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    This is my first article in EE and english is not my mother tongue so any comments you have or any corrections you would like to make, please feel free to speak up :) For those of you working with AD, you already are very familiar with the classi…
    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now