Login scripts in active directory

Posted on 2009-12-22
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

    LVL 8

    Assisted Solution

    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.
    LVL 1

    Expert Comment

    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.  
    LVL 7

    Accepted Solution


    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

    The default location os storing GPO & Scripts are C:\WINDOWS\SYSVOL\sysvol\\
    There is two folder inside the 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

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

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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    This is my first article in EE and english is not my mother tongue so any comments you have or any corrections you would like to make, please feel free to speak up :) For those of you working with AD, you already are very familiar with the classi…
    Companies that have implemented Microsoft’s Active Directory need to ensure that the Active Directory is configured and operating properly. If there are issues found and not resolved, it eventually leads the components to fail or stop working and fi…
    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 tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

    794 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now