Windows 7 mapped drives lost when not on network

Posted on 2012-09-15
Last Modified: 2012-10-16
I have a 2008R2 domain with Windows 7 computers.  Have setup a logon script that maps certain drives when a user logs on.  As long as the user is connected to the network and logs onto the domain they get their mapped drives.  But if they go mobile and are not connected to the network they lose their mapped drives.  Drives that have been manually mapped still show up but those that are done thru the logon script do not.  This is a problem when they are mobile and connect to our network with a VPN and cannot access the drives they need.

Is there a way of keeping the mapped drives whether they are on the network or not?

Thanks for any suggestions
Question by:amforem
    LVL 21

    Accepted Solution

    why use a script when you can use Group Policy Preferences to map your drives.
    This will at least help simplify the process vs. batching it.

    If you are looking to map using the batch you might be missing the switch /persistent:yes
    net use g: "\\server1\share1" /persistent:yes
    LVL 8

    Assisted Solution

    You can also specify at the logon screen that you want to logon using a VPN connection. That way the GP's will be processed at logon presenting your users with al settings like they have when connected to the network.

    More information can be found here:

    Expert Comment

    I'm with yo_bee Group Policy simplifies network mapping a lot easier

    Author Comment

    I am currently on the road right now which is why the question came up.  As soon as I get off the road I will try your suggestions to see which one works for me.

    Thanks for your help

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
    Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
    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 to another domain controller. Log onto the new domain controller with a user account t…
    The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

    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

    20 Experts available now in Live!

    Get 1:1 Help Now