大网数据广告活动
域与目录服务

Logon scripts don't run for five minutes

· 52CE 我爱测

Provides a solution to an issue where logon scripts don't run for five minutes after a user logs on to a Windows 8.1-based computer.

This article provides a solution to an issue where logon scripts don't run for five minutes after a user logs on to a Windows 8.1-based computer.

Applies to:   Windows client (All supported versions)
Original KB number:   2895815

Symptoms

After a user logs on to a Windows 8.1-based computer, the logon scripts do not run for five minutes. This behavior causes the following symptoms to occur:

  • Operations that are performed by the logon scripts may not be visible on Windows 8.1-based computers until five minutes after the user logs on.

  • Resources that are made available by the logon scripts may not be available to users on Windows 8.1-based computers until about five minutes after users log on.

Cause

This behavior occurs because Windows 8.1 includes a new Group Policy setting, Configure Logon Script Delay, that controls the behavior of logon scripts. This script is stored in the following location:

Computer Configuration\Administrative Templates\System\Group Policy

The default value setting for the Configure Logon Script Delay policy is Not Configured. However, the default behavior of a Group Policy client is to wait five minutes before it runs logon scripts.

The goal of the five-minute delay is to speed up the loading of the user's desktop on Windows 8.1-based computers.

Resolution

If you want the logon scripts to run at user logon without any delay, you should configure the Configure Logon Script Delay setting to Disabled in the Computer Configuration\Administrative Templates\System\Group Policy location.

If you want to change the time that the Group Policy client waits until it runs the logon scripts, you should configure the Configure Logon Script Delay setting to Enabled in the Computer Configuration\Administrative Templates\System\Group Policy location. Then, in the options section, set minute to the desired value. The maximum value that you can enter is 1,000 minutes.

After you set the policy to Enabled and set the time in minutes, the Group Policy client waits for the specified time before it runs logon scripts at user logon. If you enter the time in minutes as zero (0), the setting is disabled, and the Group Policy client runs the logon scripts at user logon without any delay.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。