The Win32_OperatingSystem class represents an operating system installed on a Win32 computer system. Any operating system that can be installed on a Win32 system is a descendent (or member) of this class.
Example: Microsoft Windows 95.
{'Description':'The LocalDateTime parameter is the time to set. This property may not be NULL.','in':True}
Description
'The SetDateTime method sets the current system time on the computer. On computer systems running Windows NT/2000, the calling process must have the SE_SYSTEMTIME_NAME privilege. The method returns an integer value that can be interpretted as follows: 0 - Successful completion. Other - For integer values other than those listed above, refer to Win32 error code documentation.'
Implemented
True
Privileges
['SeSystemTimePrivilege']
ValueMap
['0', '..']
Values
['Success', 'Other']
SetDateTime method is in 1 class (Win32_OperatingSystem) of ROOT\cimv2 and in 2 namespaces
{'BitValues':['Shutdown', 'Reboot', 'Force', 'Power Off', 'Force If Hung'],'Description':'The Flags parameter contains a set of flags to shut the computer down. Setting this parameter to 0 is the command to logoff.','in':True,'MappingStrings':['Win32API|System Shutdown Functions|ExitWindowsEx']}
Reserved
sint32
1
✓
-
{'Description':'The Reserved parameter provides a way to extend Win32Shutdown. Presently, the Reserved parameter is ignored.','in':True,'MappingStrings':['Win32API|System Shutdown Functions|ExitWindowsEx']}
Description
'The Win32Shutdown method provides the full set of shutdown options supported by Win32 operating systems. The method returns an integer value that can be interpretted as follows: 0 - Successful completion. Other - For integer values other than those listed above, refer to Win32 error code documentation.'
{'Description':'The Timeout parameter is the time in seconds before shutdown take place. The default value is 0.','in':True}
Comment
string
1
✓
-
{'Description':'The Comment parameter specifies a message to display in the shutdown dialog box and also stored as a comment in the event log entry.','in':True,'MappingStrings':['Win32API|System Shutdown Functions|InitiateSystemShutdownEx']}
ReasonCode
uint32
2
✓
-
{'Description':'The ReasonCode parameter specifies the reason for initiating the shutdown.','in':True,'MappingStrings':['Win32API|System Shutdown Functions|InitiateSystemShutdownEx']}
Flags
sint32
3
✓
-
{'BitValues':['Shutdown', 'Reboot', 'Force', 'Power Off', 'Force If Hung'],'Description':'The Flags parameter contains a set of flags to shut the computer down. Setting this parameter to 0 is the command to logoff.','in':True,'MappingStrings':['Win32API|System Shutdown Functions|ExitWindowsEx']}
Description
'The Win32ShutdownTracker method provides the full set of shutdown options supported by Win32 operating systems. Comments, reason for shutdown and timeout can be specifiedwhich is not available in Win32Shutdown method.The method returns an integer value that can be interpretted as follows: 0 - Successful completion. Other - For integer values other than those listed above, refer to Win32 error code documentation.'
'The Reboot method shuts down the computer system, then restarts it. On computers running Windows NT/2000, the calling process must have the SE_SHUTDOWN_NAME privilege. The method returns an integer value that can be interpretted as follows: 0 - Successful completion. Other - For integer values other than those listed above, refer to Win32 error code documentation.'
'The Shutdown method unloads programs and DLLs to the point where it is safe to turn off the computer. All file buffers are flushed to disk, and all running processes are stopped. On computer systems running Windows NT/2000, the calling process must have the SE_SHUTDOWN_NAME privilege. The method returns an integer value that can be interpretted as follows: 0 - Successful completion. Other - For integer values other than those listed above, refer to Win32 error code documentation.'
'The BuildNumber property indicates the build number of the operating system. It can be used for more precise versioning information than product release version numbers Example: 1381'
MappingStrings
['Win32API|System Information Structures|OSVERSIONINFOEX|dwBuildNumber']
'The CodeSet property indicates the code page value used by the operating system. A code page contains a character table used by the operating system to translate strings for different languages. The American National Standards Institute (ANSI) lists values that represent defined code pages. If the operating system does not use an ANSI code page, this member will be set to 0. The CodeSet string can use up to six characters to define the code page value. Example: 1255.'
MappingStrings
['Win32API|National Language Support Functions|GetLocaleInfo|LOCALE_IDEFAULTANSICODEPAGE']
'The CountryCode property indicates the code for the country/regionused by the operating system. Values are based on international phone dialing prefixes (also referred to as IBM country/region codes). The CountryCode string can use up to six characters to define the country/region code value. Example: 1 for the United States)'
MappingStrings
['Win32API|National Language Support Functions|GetLocaleInfo|LOCALE_ICOUNTRY']
'The CSDVersion property contains a null-terminated string, that indicates the latest Service Pack installed on the computer system. If no Service Pack is installed, the string is NULL. For computer systems running Windows 95, this property contains a null-terminated string that provides arbitrary additional information about the operating system. Example: Service Pack 3.'
MappingStrings
['Win32API|System Information Structures|OSVERSIONINFOEX|szCSDVersion']
read
True
CSDVersion property is in 1 class (Win32_OperatingSystem) of ROOT\cimv2 and in 4 namespaces
'If true, indicates that 32-bit applications are running with Data Execution Prevention (DEP) applied. (false if DataExecutionPrevention_Available = false)'
MappingStrings
['WMI']
read
True
DataExecutionPrevention_32BitApplications property is in 1 class (Win32_OperatingSystem) of ROOT\cimv2 and in 2 namespaces
'If true, indicates that the hardware supports Windows Data Execution Prevention (DEP) technology. DEP ensures that all memory locations are marked with a non-executable attribute unless the memory location explicitly contains executable code. This can help mitigate certain types of buffer overrun security exploits. If DEP is available, 64-bit applications are automatically protected. To determine if DEP has been enabled for 32-bit applications and drivers, use the DataExecutionPrevention_ properties '
MappingStrings
['WMI']
read
True
DataExecutionPrevention_Available property is in 1 class (Win32_OperatingSystem) of ROOT\cimv2 and in 2 namespaces
'The DataExecutionPrevention_SupportPolicy indicates which one of four Data Execution Prevention (DEP) settings is applied. Each setting varies by the extent to which DEP is applied to 32-bit applications. Note that DEP is always applied to the Windows kernel. Always On (not available in the user interface) indicates that DEP is enabled for all 32-bit applications on the machine with no exceptions. OptOut indicates DEP is on by default for all 32-bit applications and that a user or administrator must explicitly remove support for a 32-bit application by adding to an exceptions list. OptIn indicates DEP is on for a limited number of binaries, the kernel, and all Windows services but it is off by default for all 32-bit applications; a user or administrator must explicitly choose the AlwaysOn (not available in the user interface) or OptOut setting before DEP can be applied to 32-bit applications. AlwaysOff (not available in the user interface) indicates DEP is turned off for all 32-bit applications on the machine. '
MappingStrings
['WMI']
read
True
ValueMap
['0', '1', '2', '3']
Values
['Always Off', 'Always On', 'Opt In', 'Opt Out']
DataExecutionPrevention_SupportPolicy property is in 1 class (Win32_OperatingSystem) of ROOT\cimv2 and in 2 namespaces
'The Debug property indicates whether the operating system is a checked (debug) build. Checked builds provide error checking, argument verification, and system debugging code. Additional code in a checked binary generates a kernel debugger error message and breaks into the debugger. This helps immediately determine the cause and location of the error. Performance suffers in the checked build due to the additional code that is executed. Values: TRUE or FALSE, A value of TRUE indicates the debugging version of User.exe is installed.'
MappingStrings
['Win32API|GetSystemMetrics|SM_DEBUG']
read
True
Debug property is in 1 class (Win32_OperatingSystem) of ROOT\cimv2 and in 6 namespaces
'The ForegroundApplicationBoost property indicates the increase in priority given to the foreground application. On computer systems running Windows NT 4.0 and Windows 2000, application boost is implemented by giving an application more execution time slices (quantum lengths). A ForegroundApplicationBoost value of 0 indicates the system boosts the quantum length by 6; if 1, then 12; and if 2 then 18. On Windows NT 3.51 and earlier, application boost is implemented by increasing the scheduling priority. For these systems, the scheduling priority is increased by the value of this property. The default value is 2.'
'The Locale property indicates the language identifier used by the operating system. A language identifier is a standard international numeric abbreviation for a country or region. Each language has a unique language identifier (LANGID), a 16-bit value that consists of a primary language identifier and a secondary language identifier.'
MappingStrings
['Win32API|National Language Support Functions|GetLocaleInfo|LOCALE_ILANGUAGE']
['Undefined', 'Ultimate Edition', 'Home Basic Edition', 'Home Premium Edition', 'Enterprise Edition', 'Home Basic N Edition', 'Business Edition', 'Standard Server Edition', 'Datacenter Server Edition', 'Small Business Server Edition', 'Enterprise Server Edition', 'Starter Edition', 'Datacenter Server Core Edition', 'Standard Server Core Edition', 'Enterprise Server Core Edition', 'Enterprise Server IA64 Edition', 'Business N Edition', 'Web Server Edition', 'Cluster Server Edition', 'Home Server Edition', 'Storage Express Server Edition', 'Storage Standard Server Edition', 'Storage Workgroup Server Edition', 'Storage Enterprise Server Edition', 'Server For Small Business Edition', 'Small Business Server Premium Edition']
OperatingSystemSKU property is in 1 class (Win32_OperatingSystem) of ROOT\cimv2 and in 2 namespaces
'The PortableOperatingSystem property indicates if theOperating System is booting from a supported locally connected storagedevice. Values: TRUE or FALSE, A value of TRUE indicates the OperatingSystem was booted from a supported locally connected storage device. '
read
True
PortableOperatingSystem property is in 1 class (Win32_OperatingSystem) of ROOT\cimv2 and in 2 namespaces
'The Primary property determines whether this is the primary operating system. Values: TRUE or FALSE. A value of TRUE indicates this is the primary operating system.'
MappingStrings
['WMI']
read
True
Primary property is in 1 class (Win32_OperatingSystem) of ROOT\cimv2 and in 5 namespaces
'The ProductType property indicates additional information about the system. This member can be one of the following values: 1 - Work Station 2 - Domain Controller 3 - Server'
'The ServicePackMajorVersion property indicates the major version number of the service pack installed on the computer system. If no service pack has been installed, the value is zero. ServicePackMajorVersion is valid for computers running Windows 2000 and later (NULL otherwise).'
MappingStrings
['Win32API|System Information Structures|OSVERSIONINFOEX|wServicePackMajor']
read
True
ServicePackMajorVersion property is in 1 class (Win32_OperatingSystem) of ROOT\cimv2 and in 2 namespaces
'The ServicePackMinorVersion property indicates the minor version number of the service pack installed on the computer system. If no service pack has been installed, the value is zero. ServicePackMinorVersion is valid for computers running Windows 2000 and later (NULL otherwise).'
MappingStrings
['Win32API|System Information Structures|OSVERSIONINFOEX|wServicePackMinor']
read
True
ServicePackMinorVersion property is in 1 class (Win32_OperatingSystem) of ROOT\cimv2 and in 2 namespaces
['Windows Server 2003, Small Business Edition', 'Windows Server 2003, Enterprise Edition', 'Windows Server 2003, Backoffice Edition', 'Windows Server 2003, Communications Edition', 'Microsoft Terminal Services', 'Windows Server 2003, Small Business Edition Restricted', 'Windows XP Embedded', 'Windows Server 2003, Datacenter Edition', 'Single User', 'Windows XP Home Edition', 'Windows Server 2003, Web Edition']
CIMTYPE
'uint32'
Description
'The SuiteMask property indicates a set of bit flags that identify the product suites available on the system. This member can be a combination of the following values: 0 - Windows Server 2003, Small Business Edition 1 - Windows Server 2003, Enterprise Edition 2 - Windows Server 2003, Backoffice Edition 3 - Windows Server 2003, Communications Edition 4 - Microsoft Terminal Services 5 - Windows Server 2003, Small Business Edition Restricted 6 - Windows XP Embedded 7 - Windows Server 2003, Datacenter Edition 8 - Single User 9 - Windows XP Home Edition 10 - Windows Server 2003, Web Edition'
read
True
SuiteMask property is in 1 class (Win32_OperatingSystem) of ROOT\cimv2 and in 2 namespaces
'CreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.'
'CurrentTimeZone indicates the number of minutes the operating system is offset from Greenwich Mean Time. Either the number is positive, negative or zero.'
'The Description property provides a description of the Windows operating system. Some user interfaces (those that allow editing of this description) limit its length to 48 characters.'
'Boolean indicating whether the operating system is distributed across several computer system nodes. If so, these nodes should be grouped as a cluster.'
'The total number of KBytes that can be mapped into the OperatingSystem's paging files without causing any other pages to be swapped out. 0 indicates that there are no paging files.'
'Number of kilobytes of virtual memory currently unused and available. For example, this may be calculated by adding the amount of free RAM to the amount of free paging space (i.e., adding the properties, FreePhysicalMemory and FreeSpaceInPagingFiles).'
'The InstallDate property is datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed.'
'Maximum number of process contexts the operating system can support. If there is no fixed maximum, the value should be 0. On systems that have a fixed maximum, this object can help diagnose failures that occur when the maximum is reached. If unknown, enter -1.'
'Maximum number of kilobytes of memory that can be allocated to a process. For operating systems with no virtual memory, this value is typically equal to the total amount of physical memory minus memory used by the BIOS and OS. For some operating systems, this value may be infinity - in which case, 0 should be entered. In other cases, this value could be a constant - for example, 2G or 4G.'
'A string describing the manufacturer and operating system type - used when the operating system property, OSType, is set to 1 ("Other"). The format of the string inserted in OtherTypeDescription should be similar in format to the Values strings defined for OSType. OtherTypeDescription should be set to NULL when OSType is any value other than 1.'
'The total number of kilobytes that can be stored in the operating system's paging files. Note that this number does not represent the actual physical size of the paging file on disk. 0 indicates that there are no paging files.'
'The Status property is a string indicating the current status of the object. Various operational and non-operational statuses can be defined. Operational statuses are "OK", "Degraded" and "Pred Fail". "Pred Fail" indicates that an element may be functioning properly but predicting a failure in the near future. An example is a SMART-enabled hard drive. Non-operational statuses can also be specified. These are "Error", "Starting", "Stopping" and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is on-line, yet the managed element is neither "OK" nor in one of the other states.'
'Total swap space in kilobytes. This value may be NULL (unspecified) if swap space is not distinguished from page files. However, some operating systems distinguish these concepts. For example, in UNIX, whole processes can be 'swapped out' when the free page list falls and remains below a specified amount.'
'Number of kilobytes of virtual memory. For example, this may be calculated by adding the amount of total RAM to the amount of paging space (i.e., adding the amount of memory in/aggregated by the computer system to the property, SizeStoredInPagingFiles.'
'The total amount of physical memory (in Kbytes) available to the OperatingSystem. This value does not necessarily indicate the true amount of physical memory, but what is reported to the OperatingSystem as available to it.'
'The Win32_OperatingSystem class represents an operating system installed on a Win32 computer system. Any operating system that can be installed on a Win32 system is a descendent (or member) of this class. Example: Microsoft Windows 95.'