Contents

Logon Scripts Launch Delayed Minutes after Connecting to XenApp

Website Visitors:

Symptoms or Error

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.

Environment

  • XenApp 6.x/7.x
  • Windows 2008 R2
  • Windows 2012 R2
  • Windows 8.1 Client Machines
  • Windows 2012 Client or Servers

Solution

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

https://www.mediafire.com/convkey/bfb2/3f8uzlh2ljs0hkp7g.jpg

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.

Additional Resources

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

Applicable Products

Posted in Citrix Article

Want to learn more on Citrix Automations and solutions???

Subscribe to get our latest content by email.

If you like our content, please support us by sponsoring on GitHub below: