Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Mapped Drives Script Long Login Time

Posted on 2012-12-21
6
516 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

808 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