大网数据广告活动
Windows 系统接口

Win32_OSRecoveryConfiguration class

· 52CE 我爱测

The Win32_OSRecoveryConfiguration&\#8194;WMI class represents the types of information that will be gathered from memory when the operating system fails. This includes boot failures and system crashes.

The Win32_OSRecoveryConfiguration WMI class represents the types of information that will be gathered from memory when the operating system fails. This includes boot failures and system crashes.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.

Syntax

[Dynamic, Provider("CIMWin32"), SupportsUpdate, UUID("{8502C4E8-5FBB-11D2-AAC1-006008C78BC7}"), AMENDMENT]
class Win32_OSRecoveryConfiguration : CIM_Setting
{
  string  Caption;
  string  Description;
  string  SettingID;
  boolean AutoReboot;
  string  DebugFilePath;
  uint32  DebugInfoType;
  string  ExpandedDebugFilePath;
  string  ExpandedMiniDumpDirectory;
  boolean KernelDumpOnly;
  string  MiniDumpDirectory;
  string  Name;
  boolean OverwriteExistingDebugFile;
  boolean SendAdminAlert;
  boolean WriteDebugInfo;
  boolean WriteToSystemLog;
};

Members

The Win32_OSRecoveryConfiguration class has these types of members:

Properties

The Win32_OSRecoveryConfiguration class has these properties.

AutoReboot

Data type: boolean

Access type: Read/write

Qualifiers: MappingStrings ("Win32Registry|SYSTEM\\CurrentControlSet\\Control\\CrashControl|AutoReboot")

System will automatically reboot during a recovery operation.

Caption

Data type: string

Access type: Read-only

Qualifiers: MaxLen (64)

Short textual description of the current object.

This property is inherited from CIM_Setting.

DebugFilePath

Data type: string

Access type: Read/write

Qualifiers: MappingStrings ("Win32Registry|SYSTEM\\CurrentControlSet\\Control\\CrashControl|DumpFile")

Full path to the debug file. A debug file is created with the memory state of the computer after a computer failure.

Example: "C:\Windows\Memory.dmp"

DebugInfoType

Data type: uint32

Access type: Read/write

Type of debugging information written to the log file.

None (0)

Complete memory dump (1)

Kernel memory dump (2)

Small memory dump (3)

Description

Data type: string

Access type: Read-only

Textual description of the current object.

This property is inherited from CIM_Setting.

ExpandedDebugFilePath

Data type: string

Access type: Read/write

Expanded version of the DebugFilePath property.

Example: "C:\Windows\Memory.dmp"

ExpandedMiniDumpDirectory

Data type: string

Access type: Read/write

Expanded version of the MiniDumpDirectory property.

Example: "C:\Windows\MiniDump"

KernelDumpOnly

Data type: boolean

Access type: Read/write

Qualifiers: DEPRECATED, MappingStrings ("Win32Registry|SYSTEM\\CurrentControlSet\\Control\\CrashControl|KernelDumpOnly")

Only kernel debug information will be written to the debug log file. If TRUE, then only the state of the kernel is written to a file in the event of a system failure. If FALSE, the system will try to log the state of the memory, and any devices that can provide information about the system when it failed.

MiniDumpDirectory

Data type: string

Access type: Read/write

Qualifiers: MappingStrings ("Win32Registry|SYSTEM\\CurrentControlSet\\Control\\CrashControl|MiniDumpDir")

Directory where small memory dump files will be recorded and accumulated.

Example: "%systemRoot%\MiniDump"

Name

Data type: string

Access type: Read-only

Qualifiers: key, MaxLen (256), MappingStrings ("WMI")

Identifying name for this instance of the Win32_OSRecoveryConfiguration class.

OverwriteExistingDebugFile

Data type: boolean

Access type: Read/write

Qualifiers: MappingStrings ("Win32Registry|SYSTEM\\CurrentControlSet\\Control\\CrashControl|Overwrite")

New debug file will overwrite an existing one.

SendAdminAlert

Data type: boolean

Access type: Read/write

Qualifiers: MappingStrings ("Win32Registry|SYSTEM\\CurrentControlSet\\Control\\CrashControl|SendAlert")

Alert message will be sent to the system administrator in the event of an operating system failure.

SettingID

Data type: string

Access type: Read-only

Qualifiers: MaxLen (256)

Identifier by which the current object is known.

This property is inherited from CIM_Setting.

WriteDebugInfo

Data type: boolean

Access type: Read/write

Qualifiers: DEPRECATED, MappingStrings ("Win32Registry|SYSTEM\\CurrentControlSet\\Control\\CrashControl|CrashDumpEnabled")

Debugging information is to be written to a log file.

WriteToSystemLog

Data type: boolean

Access type: Read/write

Qualifiers: MappingStrings ("Win32Registry|SYSTEM\\CurrentControlSet\\Control\\CrashControl|LogEvent")

Events will be written to a system log.

Remarks

The Win32_OSRecoveryConfiguration class is derived from CIM_Setting.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Namespace Root\CIMV2
MOF CIMWin32.mof
DLL CIMWin32.dll

See also

CIM_Setting

Operating System Classes

Source: Microsoft Learn / Windows Win32 documentation 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 / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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