Solved

Mapped Drives Script Long Login Time

Posted on 2012-12-21
6
517 Views
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????
0
Comment
Question by:cstratton
6 Comments
 
LVL 4

Expert Comment

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

Expert Comment

by:alandc
ID: 38713191
Please try these settings to Run logon scripts synchronously.
http://support.microsoft.com/kb/265016

    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
0
 

Author Comment

by:cstratton
ID: 38713273
NLKornolio,

do you have an example?

Alandc,

how would this stop the script from trying to connect the mapped drives when it's off the network?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 37

Accepted Solution

by:
Neil Russell earned 500 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 (
Dont
)
0
 
LVL 4

Expert Comment

by:NLKornolio
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 ?
0
 

Author Comment

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

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

733 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