大网数据广告活动
性能与资源

Incorrect shutdown reason code

· 52CE 我爱测

Provides a resolution for the issue that an incorrect shutdown reason code written to SEL on user initiated shutdown.

This article provides a resolution for the issue that an incorrect shutdown reason code written to SEL on user initiated shutdown.

Original KB number:   2001061

Symptoms

After reboot from a manual shutdown (START->Shutdown), the Windows System Eventlog shows two events 1074. The first entry contains the correct reason code provided by the user, the second looks similar to:

Log Name: System
Source: USER32
Date: <DateTime>
Event ID: 1074
Task Category: None
Level: Information
Keywords: Classic
User: Computername\Administrator
Computer: Computername
Description:
The process C:\Windows\system32\winlogon.exe <computername> has initiated the power off of computer <computername> on behalf of user <computername>\Administrator for the following reason: No title for this reason could be found
Reason Code: 0x500ff
Shutdown Type: power off
Event 0x000500FF (System Failure) is written to the SEL (System Event Log) even if a different shutdown reason was provided by the user who initiated the shutdown.

Cause

Microsoft has confirmed that this is a problem.

Resolution

Microsoft will address the problem in future releases.

Workaround

Use shutdown.exe to initiate the shutdown, run below command (for example) from the elevated command line:

shutdown.exe /r /d P:4:2

This will result in an event log and SEL entry with reason code 0x80040002.
Shutdown reason codes can be found here: https://msdn.microsoft.com/library/aa376885(VS.85).aspx

More information

The SEL (System Event Log) is the database of events in the baseboard management controller (BMC) hardware.
The SEL adapter conveys these events to the operating system.

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 Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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