Login scripts in active directory

Posted on 2009-12-22
Medium Priority
Last Modified: 2012-05-08
My company currently uses login scripts to map Network Drives via AD group policy,
It's supposed to access them through

However, on occasion they wont run properly, and the drives will not map.

I went into the group policy, and found that when I hit show files in the login scripts area it gives me a blank file area. I then found a bunch of folders that have login scripts from various times stored in them. Can anyone help explain to me what these are and how I might fix this so it always uses the proper policy folder?

Attached is an image explaining the problem.

Question by:Daftpunk
LVL 47

Expert Comment

by:Donald Stewart
ID: 26108886

Assisted Solution

andoss earned 300 total points
ID: 26110011
The folders in that screenshot you are looking at are linked to individual GPO's.
So for your Consulting Group Policy there will be different files/logins scripts displayed that under your Default Domain Policy or any other GPO's you have.

This won't be the cause for your login scripts occasionally not working. I would suggest looking at or posting up the login scipts you are using.

Expert Comment

ID: 26110341
Also if for some reason your DC is heavily bogged down it can have an effect, do a gpresult from the CMD line on the next machine that this happens to to make sure the settings got applied.  
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.


Accepted Solution

ARK-DS earned 600 total points
ID: 26111356

Have you specified the logon script name in the user properties? I am asking this becasue if you are applying login script via GPO, the file should be in the GPC (Group Policy container) which resides in the sysvol (the location that opens up when you click "show files".
Please check if you have specified the name of the script file on the profile tab of the user (in login script box)
If yes, then it may be happening due to intermitted network issues or Fast Logon Optimization.

You can disable fast logon optimization by the help of group policy:
Computer configuration\Administrative Templates\System\Logon\Always wait for the network at computer startup and logon


LVL 24

Assisted Solution

Awinish earned 600 total points
ID: 26112396
The default location os storing GPO & Scripts are C:\WINDOWS\SYSVOL\sysvol\domain.com\
There is two folder inside the domain.com named as Policies & Scripts.
The Policies folder contains all the Group policy which is created & Scripts is shared as netlogon which stores scripts, can be login as well as startup script.
You can goto GPO,locate the script & apply it.
Finish the task by running gpupdate /force
From your screenshot,it looks to be someone wrongly give the path or script name.

Author Closing Comment

ID: 31669220
Profiles tab was not configured and the path was incorrect as well.

Also disabled fast logon for that specific group, seems to be working


Featured Post

Technology Partners: 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!

Question has a verified solution.

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

Microsoft Office 365 is a subscriptions based service which includes services like Exchange Online and Skype for business Online. These services integrate with Microsoft's online version of Active Directory called Azure Active Directory.
Wouldn't it be nice if objects in Active Directory automatically moved into the correct Organizational Units? This is what AutoAD aims to do and as a plus, it automatically creates Sites, Subnets, and Organizational Units.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

862 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