Logon Scripts Launch Delayed Minutes after Connecting to XenApp

Logon Scripts Launch Delayed Minutes after Connecting to XenApp

book

Article ID: CTX200190

calendar_today

Updated On:

Description

No errors are seen by the user or shown in event logs on the server. The logon script is delayed by up to 5 minutes which has been observed from Windows 8.1 or Windows 2012 machines users.
If you manually execute the user script from within the users session it works fine. The same issue can be seen in a Microsoft's Remote Desktop (RDP) session.

Resolution

Using GP​EDIT.msc, adjust the Microsoft Policy called Configure Logon Script Delay for your Windows 8.1 or Windows 2012 users.

The policy is located here:
 Computer Configuration > Administrative Templates > System > Group Policy > Configure Logon Script Delay
User-added image


Note: This is a Microsoft Policy created for Windows 2012 , Windows 8.1 and Windows 8.1 RT. If it is not configured, the default setting is to wait five minutes before running the logon scripts.
If a delay is not required for your environment, disable this policy or adjust it with a lower minute value.

See Microsoft TechNet Blog - Windows 8.1 Logon Script Delay Policy Setting.


Problem Cause

This issue is caused by a policy introduced in Windows 8.1 by Microsoft to provide users a faster logon to their desktops bypassing delays which users may experience due to lengthy logon scripts.

Issue/Introduction

Users have logon scripts that map printers or network shares for users, when logging in from a Windows 8.1 or Windows 2012 machines the script may take up to 5 minutes before it runs for the user.

Additional Information

Microsoft TechNet Blog - Windows 8.1 Logon Script Delay Policy Setting
Microsoft Forums - Logon script delayed by 5 minutes (300 seconds)
Microsoft KB2895815 - Logon scripts do not run for five minutes after a user logs on to a Windows 8.1-based computer