- WMI Library -
WMI Libraly > Win32_ComputerSystem Class

Win32_ComputerSystem Class

The Win32_ComputerSystem class represents a computer system operating in a Win32 environment.
Namespace value is root/CIMV2.
WMI Provider value is CIMWin32.


Properties

  • AdminPasswordStatus
  • The AdminPasswordStatus property identifies the system-wide hardware security settings for Administrator Password Status.

  • AutomaticManagedPagefile
  • The AutomaticManagedPagefile property determines whether the system managed pagefile is enabled. This capability is notAvailable on windows server 2003,XP and lower versions.
    Values: TRUE or FALSE. If TRUE, the automatic managed pagefile is enabled.

  • AutomaticResetBootOption
  • The AutomaticResetBootOption property determines whether the automatic reset boot option is enabled, i.e. whether the machine will try to reboot after a system failure.
    Values: TRUE or FALSE. If TRUE, the automatic reset boot option is enabled.

  • AutomaticResetCapability
  • The AutomaticResetCapability property determines whether the auto reboot feature is available with this machine. This capability is available on Windows NT but not on Windows 95.
    Values: TRUE or FALSE. If TRUE, the automatic reset is enabled.

  • BootOptionOnLimit
  • Boot Option on Limit. Identifies the system action to be taken when the Reset Limit is reached.

  • BootOptionOnWatchDog
  • The BootOptionOnWatchDog Property indicates the type of re-boot action to be taken after the time on the watchdog timer has elapsed.

  • BootROMSupported
  • The BootROMSupported property determines whether a boot ROM is supported.
    Values are TRUE or FALSE. If BootROMSupported equals TRUE, then a boot ROM is supported.

  • BootupState
  • The BootupState property specifies how the system was started. Fail-safe boot (also called SafeBoot) bypasses the user's startup files.
    Constraints: Must have a value.

  • Caption
  • The Caption property is a short textual description (one-line string) of the object.

  • ChassisBootupState
  • The ChassisBootupState property indicates the enclosure's bootup state.

  • CreationClassName
  • The CreationClassName property 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
  • The CurrentTimeZone property indicates the amount of time the unitary computer system is offset from Coordinated Universal Time.

  • DaylightInEffect
  • The DaylightInEffect property specifies if the daylight savings is in effect.
    Values: TRUE or FALSE. If TRUE, daylight savings is presently being observed. In most cases this means that the current time is one hour earlier than the standard time.

  • Description
  • The Description property provides a textual description of the object.

  • DNSHostName
  • The DNSHostName property indicates the DNS host name of the local computer.

  • Domain
  • The Domain property indicates the name of the domain to which the computer belongs.

  • DomainRole
  • The DomainRole property indicates the role this computer plays within its assigned domain-workgroup. The domain-workgroup is a collection of computers on the same network. For example, the DomainRole property may show this computer is a "Member Workstation" (value of [1]).

  • EnableDaylightSavingsTime
  • The EnableDaylightSavingsTime property indicates whether Daylight Savings Time is recognized on this machine. FALSE - time does not move an hour ahead or behind in the year. NULL - the status of DST is unknown on this system

  • FrontPanelResetStatus
  • The FrontPanelResetStatus property identifies the hardware security settings for the reset button on the machine.

  • InfraredSupported
  • The InfraredSupported property determines whether an infrared (IR) port exists on the computer system.
    Values are TRUE or FALSE. If InfraredSupported equals TRUE, then an IR port exists.

  • InitialLoadInfo
  • This object contains the data needed to find either the initial load device (its key) or the boot service to request the operating system to start up. In addition, the load parameters (ie, a pathname and parameters) may also be specified.

  • InstallDate
  • 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.

  • KeyboardPasswordStatus
  • The KeyboardPasswordStatus property identifies the system-wide hardware security settings for Keyboard Password Status.

  • LastLoadInfo
  • This object contains the data identifying either the initial load device (its key) or the boot service that requested the last operating system load. In addition, the load parameters (ie, a pathname and parameters) may also be specified.

  • Manufacturer
  • The Manufacturer property indicates the name of the computer manufacturer.
    Example: Acme

  • Model
  • The Model property indicates the product name of the computer given by the manufacturer.

  • Name
  • The Name property defines the label by which the object is known. When subclassed, the Name property can be overridden to be a Key property.

  • NameFormat
  • The CIM_ComputerSystem object and its derivatives are Top Level Objects of CIM. They provide the scope for numerous components. Having unique CIM_System keys is required. A heuristic is defined to create the CIM_ComputerSystem name to attempt to always generate the same name, independent of discovery protocol. This prevents inventory and management problems where the same asset or entity is discovered multiple times, but can not be resolved to a single object. Use of the heuristic is optional, but recommended.

    The NameFormat property identifies how the computer system name is generated, using a heuristic. The heuristic is outlined, in detail, in the CIM V2 Common Model specification. It assumes that the documented rules are traversed in order, to determine and assign a name. The NameFormat values list defines the precedence order for assigning the computer system name. Several rules do map to the same Value.

    Note that the CIM_ComputerSystem Name calculated using the heuristic is the system's key value. Other names can be assigned and used for the CIM_ComputerSystem that better suit the business, using Aliases.

  • NetworkServerModeEnabled
  • The NetworkServerModeEnabled property determines whether Network Server Mode is enabled.
    Values: TRUE or FALSE. If TRUE, Network Server Mode is enabled.

  • NumberOfLogicalProcessors
  • The NumberOfLogicalProcessors property indicates the number of logical processors currently available on the system.

  • NumberOfProcessors
  • The NumberOfProcessors property indicates the number of physical processors currently available on the system. This is the number of processors whose status is "enabled" - versus simply the number of processors for the computer system. The former can be determined by enumerating the number of processor instances associated with the computer system object, using the Win32_ComputerSystemProcessor association.

  • OEMLogoBitmap
  • The OEMLogoBitmap array holds the data for a bitmap created by the OEM.

  • OEMStringArray
  • This structure contains free form strings defined by the OEM. Examples of this are: Part Numbers for Reference Documents for the system, contact information for the manufacturer, etc.

  • PartOfDomain
  • The PartOfDomain property indicates whether the computer is part of a domain or workgroup. If TRUE, the computer is part of a domain. If FALSE, the computer is part of a workgroup. If NULL, the computer is not part of a network group, or is unknown.

  • PauseAfterReset
  • The PauseAfterReset property identifies the time delay before the reboot is initiated. It is used after a system power cycle, system reset (local or remote), and automatic system reset. A value of -1 indicates that the pause value is unknown

  • PCSystemType
  • The PCSystemType property indicates the nature of the PC a user is working with like Laptop, Desktop, Tablet-PC etc.

  • PowerManagementCapabilities
  • Indicates the specific power-related capabilities of a computer system and its associated running operating system. The values, 0="Unknown", 1="Not Supported", and 2="Disabled" are self-explanatory. The value, 3="Enabled" indicates that the power management features are currently enabled but the exact feature set is unknown or the information is unavailable. "Power Saving Modes Entered Automatically" (4) describes that a system can change its power state based on usage or other criteria. "Power State Settable" (5) indicates that the SetPowerState method is supported. "Power Cycling Supported" (6) indicates that the SetPowerState method can be invoked with the PowerState parameter set to 5 ("Power Cycle"). "Timed Power On Supported" (7) indicates that the SetPowerState method can be invoked with the PowerState parameter set to 5 ("Power Cycle") and the Time parameter set to a specific date and time, or interval, for power-on.

  • PowerManagementSupported
  • Boolean indicating that the ComputerSystem, with its running OperatingSystem, supports power management. This boolean does not indicate that power management features are currently enabled, or if enabled, what features are supported. Refer to the PowerManagementCapabilities array for this information. If this boolean is false, the integer value 1 for the string, "Not Supported", should be the only entry in the PowerManagementCapabilities array.

  • PowerOnPasswordStatus
  • The PowerOnPasswordStatus property identifies the system-wide hardware security settings for Power On Password Status.

  • PowerState
  • Indicates the current power state of the computer system and its associated operating system. Regarding the power saving states, these are defined as follows: Value 4 (Unknown) indicates that the system is known to be in a power save mode, but its exact status in this mode is unknown; 2 (Low Power Mode) indicates that the system is in a power save state but still functioning, and may exhibit degraded performance; 3 (Standby) describes that the system is not functioning but could be brought to full power 'quickly'; and value 7 (Warning) indicates that the computerSystem is in a warning state, though also in a power save mode.

  • PowerSupplyState
  • The PowerSupplyState identifies the state of the enclosure's power supply (or supplies) when last booted.

  • PrimaryOwnerContact
  • A string that provides information on how the primary system owner can be reached (e.g. phone number, email address, ...).

  • PrimaryOwnerName
  • The name of the primary system owner.

  • ResetCapability
  • If enabled (value = 4), the unitary computer system can be reset via hardware (e.g. the power and reset buttons). If disabled (value = 3), hardware reset is not allowed. In addition to Enabled and Disabled, other values for the property are also defined - "Not Implemented" (5), "Other" (1) and "Unknown" (2).

  • ResetCount
  • The ResetCount property indicates the number of automatic resets since the last intentional reset. A value of -1 indicates that the count is unknown.

  • ResetLimit
  • The ResetLimit property indicates the number of consecutive time the system reset will be attempted. A value of -1 indicates that the limit is unknown

  • Roles
  • An array (bag) of strings that specify the roles this System plays in the IT-environment. Subclasses of System may override this property to define explicit Roles values. Alternately, a Working Group may describe the heuristics, conventions and guidelines for specifying Roles. For example, for an instance of a networking system, the Roles property might contain the string, 'Switch' or 'Bridge'.

  • Status
  • 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.

  • SupportContactDescription
  • The SupportContactDescription property is an array that indicates the support contact information for the Win32 computer system.

  • SystemStartupDelay
  • The SystemStartupDelay property indicates the time to delay before starting the operating system

    Note: The SE_SYSTEM_ENVIRONMENT privilege is required on IA64bit machines. This privilege is not required for 32bit systems.

  • SystemStartupOptions
  • The SystemStartupOptions property array indicates the options for starting up the computer system. Note that this property is not writable on IA64 bit machines.
    Constraints: Must have a value.

    Note: The SE_SYSTEM_ENVIRONMENT privilege is required on IA64bit machines. This privilege is not required for other systems.

  • SystemStartupSetting
  • The SystemStartupSetting property indicates the index of the default start profile. This value is 'calculated' so that it usually returns zero (0) because at write-time, the profile string is physically moved to the top of the list. (This is how Windows NT determines which value is the default.)

    Note: The SE_SYSTEM_ENVIRONMENT privilege is required on IA64bit machines. This privilege is not required for 32bit systems.

  • SystemType
  • The SystemType property indicates the type of system running on the Win32 computer.
    Constraints: Must have a value

  • ThermalState
  • The ThermalState property identifies the enclosure's thermal state when last booted.

  • TotalPhysicalMemory
  • The TotalPhysicalMemory property indicates the total size of physical memory.
    Example: 67108864

  • UserName
  • The UserName property indicates the name of the currently-logged-on user.
    Constraints: Must have a value.
    Example: johnsmith

  • WakeUpType
  • The WakeUpType property indicates the event that caused the system to power up.

  • Workgroup
  • The Workgroup property contains the name of the workgroup. This value is only valid if the PartOfDomain property is FALSE.


    Methods

  • SetPowerState
  • SetPowerState method defines the desired power state of a computer system and its running operating system, and when the system should be put into that state. The PowerState parameter is specified as one of the valid integer values defined for the property, PowerState. The Time parameter (for all state changes but 5, "Power Cycle") indicates when the power state should be set, either as a regular date-time value or as an interval value (where the interval begins when the method invocation is received). When the PowerState parameter is equal to 5, "Power Cycle", the Time parameter indicates when the system should power on again. power off is immediate. SetPowerState should return 0 if successful, 1 if the specified power state and time requests are not supported, and some other value if any other error occurred.

  • Rename
  • The Rename method is used to change the name of a computer either in a workgroup or a domain. When working remotely, the Rename method does not function for Windows XP Home Edition or on Professional Edition (workgroup only). It should be noted that, for any computer in a domain (except the Domain Controller, since it can authenticate itself), delegation is required as a second hop is needed from the machine being remoted over to the Domain Controller for authentication. There are no restrictions for local cases.
    If the Password and Username parameters are specified, then the connection to winmgmt must use a high authentication level (i.e. no less than RPC_C_AUTHN_LEVEL_PKT_PRIVACY) when they connect to winmgmt (i.e. in the call to obtain the IWbemServices interface) or SetProxyBlanket on their IWbemServices ptr. If they are local to winmgmt then this is not a concern because their authentication level is as good as RPC_C_AUTHN_LEVEL_PKT_PRIVACY as well as their client request never goes over the wire to get to the winmgmt.
    If Password and Username are left null, the provider does not care.
    If the provider determines that the authentication level is too low and a Password or Username has been specified then WBEM_E_ENCRYPTED_CONNECTION_REQUIRED will be returned.
    The method can return the following values:
    0 - Success. Reboot required.
    Other - For integer values other than those listed above, refer to Win32 error code documentation.

  • JoinDomainOrWorkgroup
  • The JoinDomainOrWorkgroup method joins computer systems to a domain or workgroup. This method is only available on Windows 2000 platforms and beyond. The method can return the following values:
    0 - Success.
    Other - For integer values other than those listed above, refer to Win32 error code documentation.
    Note: If moving a computer from a Domain to a WorkGroup, the computer must first be removed from the domain before running this method to join the Workgroup.
    Password and Username must use a high authentication level (i.e. no less than RPC_C_AUTHN_LEVEL_PKT_PRIVACY) when they connect to winmgmt (i.e. in the call to obtain the IWbemServices interface) or SetProxyBlanket on their IWbemServices ptr. If they are local to winmgmt then this is not a concern because their authentication level is as good as RPC_C_AUTHN_LEVEL_PKT_PRIVACY as well as their client request never goes over the wire to get to the winmgmt.
    If Password and Username are left null, the provider does not care.
    If the provider determines that the authentication level is too low and a Password or Username has been specified then WBEM_E_ENCRYPTED_CONNECTION_REQUIRED will be returned.

  • UnjoinDomainOrWorkgroup
  • The UnjoinDomainOrWorkgroup method un-joins or removes a computer system from a domain or workgroup. This method is only available on Windows 2000 platforms and beyond. The method can return the following values:
    0 - Success.
    Other - For integer values other than those listed above, refer to Win32 error code documentation.
    Password and Username must use a high authentication level (i.e. no less than RPC_C_AUTHN_LEVEL_PKT_PRIVACY) when they connect to winmgmt (i.e. in the call to obtain the IWbemServices interface) or SetProxyBlanket on their IWbemServices ptr. If they are local to winmgmt then this is not a concern because their authentication level is as good as RPC_C_AUTHN_LEVEL_PKT_PRIVACY as well as their client request never goes over the wire to get to the winmgmt.
    If Password and Username are left null, the provider does not care.
    If the provider determines that the authentication level is too low and a Password or Username has been specified then WBEM_E_ENCRYPTED_CONNECTION_REQUIRED will be returned.


    Example WQL

    SELECT * FROM Win32_ComputerSystem
    About this site information

    This contents is created by WMI having class information.
    WMI Environment is Windows Server 2008 R2 Enterprise Edition.

    This link is Microsoft documents for "Managing Windows with WMI".
    That is VB(Visual Basic) scripting sample.
    This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
    That is VB.net(Visual Basic .net) scripting sample.

    - WMI Library -
    http://library.wmifun.net/

    WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.

    This website is created by Toh.
    Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
    ^ Go to the top...