Win32_ComputerShutdownEvent class
The Win32_ComputerShutdownEvent is a Windows Management Instrumentation (WMI) event class that represents events when a computer begins the process of shutting down. It identifies the type of shutdown, which can be a user log off, complete shutdown, or restart.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.
Syntax
class Win32_ComputerShutdownEvent : Win32_ComputerSystemEvent
{
string MachineName;
uint8 SECURITY_DESCRIPTOR[];
uint64 TIME_CREATED;
uint32 Type;
};
Members
The Win32_ComputerShutdownEvent class has these types of members:
Properties
The Win32_ComputerShutdownEvent class has these properties.
- MachineName
-
- Data type: string
- Access type: Read-only
Name of the computer for which the event occurs. This property is inherited from CIM_ManagedSystemElement.
- SECURITY_DESCRIPTOR
-
- Data type: uint8 array
- Access type: Read-only
Descriptor that the event provider uses to determine which users can receive the event.
Windows 2000 and Windows NT: This property is not available. - TIME_CREATED
-
- Data type: uint64
- Access type: Read-only
Unique value that indicates the time an event is generated. This is a 64-bit value that represents the number of 100-nanosecond intervals after January 1, 1601. The information is in the Coordinated Universal Time (UTC) format.
For more information about using uint64 values in scripts, see Scripting in WMI.
- Type
-
- Data type: uint32
- Access type: Read-only
The following table lists the values of the type of shutdown initiated.
Values Meaning - 0
"Log off"
- 1
"Shutdown or Reboot"
Remarks
The Win32_ComputerShutdownEvent class is derived from Win32_ComputerSystemEvent.
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012