Delete mapped drives in logoff.

Posted on 2009-02-12
Last Modified: 2012-05-06

Mapped drives are being a pain in the *ss for users who currently go alot working offsite, because login takes ages.

Thing is, IF we make a script for logoff to delete mapped drives, they will complain when they connect through VPN and mapped drives doesn't show up.

Suggestions solving this matter?
Question by:tiagorferreira
    LVL 8

    Expert Comment

    You could do a check in the login script to see if they are connected to the office and if so map drive.
    When using VPN, you could ask them to run a batch file to map the relevant drives.
    LVL 3

    Author Comment

    thats the unwanted case, running anything.

    Users just complain, nothing else, we have to prevent that whining.
    LVL 8

    Accepted Solution

    Ok solution with no whining

    Login script to
    Check office connection and if connected, map drive

    VPN connection - instead of the normal VPN link that they use to open a VPN connection. write a two line batch file -
    1. Line 1 - run the VPN - which prompts them to login etc
    2. Line 2 - map drives

    Hows that?
    LVL 3

    Author Comment

    sure sounds like a nice idea, will give it a go ;)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Want to promote your upcoming event?

    Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

    The environment that this is running in is SCCM 2007 R2 running on a Windows 2008 R2 server. The PXE Distribution point is running on its own Windows 2008 R2 box. This is what Event viewer showed after trying to start the WDS service:  An erro…
    This is my 3rd article on SCCM in recent weeks, the 1st ( dealing with installat…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    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…

    779 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

    10 Experts available now in Live!

    Get 1:1 Help Now