Logon scripts do not run for five minutes after a user logs on to a Windows 10 computer
Why:
A new Group Policy setting, “Configure Logon Script Delay,” that controls the behavior of logon scripts is stored in the following location:
Computer Configuration\Administrative Templates\System\Group Policy
Solution:
If you want the logon scripts to run at user logon without any delay: Disabled it:
Computer Configuration\Administrative Templates\System\Group Policy: Configure Logon Script Delay ==> Disabled
If you want to change the time that the Group Policy client waits until it runs the logon scripts, Enable it: you can set the time accordingly.
Computer Configuration\Administrative Templates\System\Group Policy: Configure Logon Script Delay ==> Enabled
Please see kb2895815