Mapped Drives Script Long Login Time

Posted on 2012-12-21
Medium Priority
Last Modified: 2012-12-21
We have a group of users that we have a login script for that maps drives. if they are at work then it works great. but, it they take their laptops home then their login time goes to 5-7 minutes. How do you suggest we fix the script so when they are off the network it does not try to map the drives????
Question by:cstratton

Expert Comment

ID: 38713188
Not really home in script but can't you specify the script so its only for the work domain ?
LVL 12

Expert Comment

by:Aland Coons
ID: 38713191
Please try these settings to Run logon scripts synchronously.

    User Configuration\Administrative Templates\System\Logon\Logonff
        Disable logoff
        Run logon scripts synchronously
        Run legacy logon scripts hidden
        Run logon scripts visible
        Run logoff scripts visible

    Computer Configuration\Adminstrative Templates\System\Logon
        Run logon scripts synchronously
        Run legacy logon scripts hidden
        Run startup scripts visible
        Run shutdown scripts visible
        Maximum wait time for Group Policy scripts

Author Comment

ID: 38713273

do you have an example?


how would this stop the script from trying to connect the mapped drives when it's off the network?
Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

LVL 37

Accepted Solution

Neil Russell earned 2000 total points
ID: 38713321
Just have a line in your script that checks for the existance of a known server file. If that file exists, your on the network so process your drive maps. If the file does NOT exist, your NOT on the network so DONT process your drive maps.

IF EXISTS  \\servername\share\file.ext (
do file maps
) ELSE (

Expert Comment

ID: 38713340
Srry no not really skilled in scripting and google doesnt give me an example.

Thougth you could say only map drives if connected to the work network profile. So not for home or public.

You looked at offline foldering ?

Author Comment

ID: 38713356
thanks, Neilsr I'll give that a try!!

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Sometimes it necessary to set special permissions on user objects.  For instance when using a Blackberry server, the SendAs permission needs to be set. I see many admins struggle with the setting that permission only to see it disappear within a few…
Native ability to set a user account password via AD GPO was removed because the passwords can be easily decrypted by any authenticated user in the domain. Microsoft recommends LAPS as a replacement and I have written an article that does something …
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

624 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