This caught me out when testing a 8.1 VM a while back. The login script took forever to run, so after looking for issues on the network and particularly the DC’s I finally came across this post.
It turns out that there is a 5 minute delay by default to speed up the login process, but this setting can override that:
- Setting Path: System/Group Policy
- Setting Name: Configure Logon Script Delay
- Supported On: At least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1
- Explanation: Enter “0” to disable Logon Script Delay. This policy setting allows you to configure how long the Group Policy client waits after logon before running scripts. By default, the Group Policy client waits five minutes before running logon scripts. This helps create a responsive desktop environment by preventing disk contention. If you enable this policy setting, Group Policy will wait for the specified amount of time before running logon scripts. If you disable this policy setting, Group Policy will run scripts immediately after logon. If you do not configure this policy setting, Group Policy will wait five minutes before running logon scripts.