GPO logon Script not running – Windows Server 2012R2

A VBS script called by “User Configuration\Policies\Windows Settings\Scripts\Logon” was not running on a Windows Server 2012 R2 RDS.

Microsoft have added a new feature to Windows 8.1 and Windows Server 2012 R2 that delays any scripts in the above location by 5 minutes.  So they will not execute until 5 mins after logon.

To disable this feature set the following to 0:

“Computer Configuration\Policies\Administrative Templates\System\Group Policy\Configure Logon Script Delay”

DisableLogonScriptDelay