Need to change network drive mapping on many PCs at same time - how?

Posted on 2004-11-22
Last Modified: 2010-04-10

I am installing a new server, which will require that I remap some network drives on many PCs in different areas.  This new server is an addition, so I can not create a DNS alias.  How can I remap all these PCs at the same time, with out having to physically (or remotely) log on to them and perform a drive disconnect and remap.

I currently have logon scripts, and have though about that method.....what is the best way to accomplish this task?  Please advise.  Thanks.
Question by:rstuemke

    Author Comment

    Follow-up....what I would like is a script that I could force to be run on each PC, without having to log on and off the user.
    LVL 57

    Expert Comment

    by:Pete Long
    login scripts are a natural choice?

    but you can always EMail the users the script in a batch file and tell them to run it? or put a web link to the batch file for your users?
    LVL 18

    Expert Comment

    Are you in an active directory domain? If so then just use group policy to assign logon scripts.

    Here is a great site to help you learn about logon scripts. You can use a script to delete old drive mappings and then map new drives.
    LVL 1

    Expert Comment

    If you are looking for the specific command in the script look for help on

    net use

    You would use a command like

    net use m: /delete
    net use m: \\newserver\newshare /persistent:yes

    Where m: is the mapping you want to change.

    I think this may work even if you have a mixed os environment (provided it is microsoft only).

    Author Comment

    Please expond on mailing the script to the users or the batch file execution from the browser.

    LVL 57

    Accepted Solution

    write in in a text file as you would in a logon script

    4575 » How can I delete, and optionally remap, all mapped drive letters?

    ::start bat
    @ echo off
    net use * /d /y
    net use s: \\server\share
    net use h: \\server\share

    save it in notepad with a .bat extension and mail it out or put it on a webpage (a link to it anyway) the users can then click and download or choose to run from the web server)

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Let’s list some of the technologies that enable smooth teleworking. 
    If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    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.

    745 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

    20 Experts available now in Live!

    Get 1:1 Help Now