Problem
Was having difficulty with a logon script I had created and was deploying to users via Group Policy.
The script was to customise printer settings for certain users.
But it just wasn't running when the users would logon to their PCs.
The GPO was applying properly, and I could run the script manually without issue.
Cause
It turns out that it was happening because, by default, logon scripts don't run for 5 mins after logon occurs on a Windows client PC.
Solution
This can be adjusted by setting the "Configure Logon Script Delay policy" to "Enabled" and then configuring a better delay.
Note: if this policy is set to disabled or not configured, the default delay of 5 mins will apply.
I initially set this delay to "0" but found that wasn't successful. Perhaps the script needed a small delay.
So I set it to "1" (1 minute) and it worked nicely.
I must also note that during the troubleshooting process, I read many recommendations to enable the "Always wait for the network at computer startup and logon" policy. I already had this policy enabled, along with the "Specify startup policy processing wait time" policy - these may also have helped the logon script run properly.
Comments