• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 579
  • Last Modified:

Login scripts in active directory

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.

3 Solutions
DonNetwork AdministratorCommented:
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.
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.  
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.


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


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.
DaftpunkAuthor Commented:
Profiles tab was not configured and the path was incorrect as well.

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

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now