Script or policy to override local users mapped drives

Posted on 2005-05-02
Last Modified: 2010-04-10
I've created a simple script for map drives, e.g.

net use G: \\server\shared
net use I: \\server\sales
net use K: \\server\acct

I put this in the gpo.  How can I edit this so that this will override/replace what ever the users already have on their existing machines?  So that I don't have to go around and manually disconnect their existing drives?  

Also how do I prevent users from being able to disconnect these drives once in place?

Question by:nelson97
    1 Comment
    LVL 6

    Accepted Solution

    We often did this:

    # mapping script
    net use G: /d
    net use I:  /d
    net use K: /d

    net use G: \\server\shared
    net use I: \\server\sales
    net use K: \\server\acct

    net use x: /d deletes the mapped x: drive, in the lower part it is created as before.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Overview This article describes how to silently install Adobe Reader on multiple workstations, customize the installation options (accept EULA, remove desktop shortcut etc) using the Adobe Customization Wizard and install Adobe Reader font packs an…
    If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    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

    21 Experts available now in Live!

    Get 1:1 Help Now