Solved

Mapped Drives Script Long Login Time

Posted on 2012-12-21
6
519 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
[X]
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
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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
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.

695 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