Sometimes Login Scripts Don't Run Properly

Our login scripts perform various functions, but are primarily for mapping drives.  I've noticed that sometimes the scripts run correctly and sometimes they don't.  For instance, there are several people that have to have there drive mappings manually deleted and remapped because the script isn't running correctly for them.  

There seems to be no pattern to it.  The systems that are affected vary and there is no consistent pattern of hardware, software, user, user rights or anything else that would explain this.  

Any help is appreciated.
cbentsenAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cyberseanCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cbentsenAuthor Commented:
Our scripts have some prompts for the user in them.  This would prevent the user from seeing the login script being run, wouldn't it?
0
cyberseanCommented:
I wouldn't think so, but you may want to test it first.  Running them synchronously should just ensure each script is executed before the user gets to the desktop.  
0
JohnBusiness Consultant (Owner)Commented:
In addition to the other posts here, when using scripts to map drives, I suggest making a script to delete said drives, putting the script into C:\windows\system32\grouppolicy\user\scripts\logoff. Then use gpedit.msc to run the script on logoff (includes shutdown).

Now before running such a script for the first time, delete the mapped drives with the option /PERSISTENT:NO.

Now, whenever the user logs off or shuts down, the mapped drives will be deleted. At the next startup, the drives should map properly. ... T
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.