Easiest way to disconnect mapped network drives on user PCs

Posted on 2014-08-25
Last Modified: 2014-08-25
Hi all :)

I am upgrading/migrating some of our windows servers from 2003 to 2012.

I am currently doing our main file server that most users have three mapped drives to: S:  H: G:

Obviously I will update the login scripts to point these drives to the new server when I am ready but what is the easiest way to first make sure the existing mappings are disconnected on all the users PCs?

Question by:tracyprier
    LVL 89

    Assisted Solution

    by:John Hurst
    In your script or in your GPO, have a line before mapping a folder that says NET USE X: /Delete where X is the drive you are going to map. This seems to work well.
    LVL 28

    Accepted Solution

    in your login scripts simply disconnect those drives if the already exist:

     net use x: /delete
    Then map them

    Author Comment

    ...just like that :) thanks guys
    LVL 4

    Expert Comment

    You can disconnect then connect your network drives with:

    net use s: /delete
    net use h: /delete
    net use g: /delete
    net use s: \\server\fileshare
    net use h: \\server\fileshare
    net use g: \\server\fileshare

    Open in new window


    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…
    This video discusses moving either the default database or any database to a new volume.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    754 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

    23 Experts available now in Live!

    Get 1:1 Help Now