Main example
List instances
# Abstract class: Get-CimInstance returns the instances of its subclasses
Get-CimInstance -ClassName CIM_Chassis |
Select-Object -Property @(
'Tag'
'Description'
'Status'
'Manufacturer'
'Model'
'Version'
'SerialNumber'
)Abstract class: it has no instances of its own. Get-CimInstance returns the instances of its subclasses (Win32_SystemEnclosure).
Examples
Decode numeric values
# Lookup table for SecurityBreach (values documented by Microsoft)
$securityBreachName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'No Breach'
4 = 'Breach Attempted'
5 = 'Breach Successful'
}
Get-CimInstance -ClassName CIM_Chassis |
Select-Object -Property @(
'Tag'
'Description'
'Status'
'Manufacturer'
'Model'
'Version'
'SerialNumber'
)Query a remote computer (CIM session)
review before running# Name of the remote computer
$computerName = 'SERVER01'
# The CIM session (WSMan by default) can be reused for several queries
$cimSession = New-CimSession -ComputerName $computerName
try {
Get-CimInstance -CimSession $cimSession -ClassName CIM_Chassis |
Select-Object -Property @(
'Tag'
'Description'
'Status'
'Manufacturer'
'Model'
'Version'
'SerialNumber'
)
} finally {
Remove-CimSession -CimSession $cimSession
}WSMan (WinRM) is used by default. For a host without WinRM, create the session with -SessionOption (New-CimSessionOption -Protocol Dcom). Add -Credential to use another account.
Show the class structure
# Class structure: properties, types and flags (Key, ReadOnly…)
$cimClass = Get-CimClass -ClassName CIM_Chassis
$cimClass.CimClassProperties |
Select-Object -Property Name, CimType, FlagsProperties
| Name | Type | Access | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AudibleAlarm# | boolean | read | If TRUE, the frame is equipped with an audible alarm. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BreachDescription# | string | read | Free-form string that provides more information if the SecurityBreach property indicates that a breach or some other security-related event occurred. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CableManagementStrategy# | string | read | Free-form string that contains information on how the various cables are connected and bundled for the frame. With many networking, storage-related, and power cables, cable management can be a complex and challenging endeavor. This string property contains information to aid in assembly and service of the frame. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Caption# | string | read | A short textual description of the object. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ChassisTypes# | uint16[] | read | Enumerated, integer-valued array that indicates the type of chassis. Values (24)
Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CreationClassName# key | string | read | Name of the class or subclass used in the creation of an instance. When used with other key properties of the class, this property allows all instances of the class and its subclasses to be uniquely identified. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CurrentRequiredOrProduced# | sint16 | read | Currently required by the chassis at 120 volts. If power is provided by the chassis (as in the case of a UPS), this property can indicate the amperage produced, as a negative number. Unit: amps at 120 volts Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Depth# | real32 | read | Depth of the physical package, in inches. Unit: inches Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description# | string | read | A textual description of the object. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HeatGeneration# | uint16 | read | Amount of heat generated by the chassis in Btu/hour. Unit: BTU per hour Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Height# | real32 | read | Height of the physical package, in inches. Unit: inches Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HotSwappable# | boolean | read | If TRUE, the package can be hot-swapped. A physical package can be hot-swapped if the element can be replaced by a physically different (but equivalent) one while the containing package is turned on. For example, a fan component may be designed to be hot-swapped. All components that can be hot-swapped are inherently removable and replaceable. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| InstallDate# | datetime | read | Indicates when the object was installed. Lack of a value does not indicate that the object is not installed. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| LockPresent# | boolean | read | If TRUE, the frame is protected with a lock. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Manufacturer# | string | read | Name of the organization responsible for producing the physical element. For more information, see the Vendor property of CIM_Product. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Model# | string | read | Name by which the physical element is generally known. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name# | string | read | Label by which the object is known. When subclassed, this property can be overridden to be a key property. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| NumberOfPowerCords# | uint16 | read | Number of power cords that must be connected to the chassis so that all of the components can operate. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| OtherIdentifyingInfo# | string | read | Additional data, beyond asset tag information, that can be used to identify a physical element. One example is bar-code data that is associated with an element, which also has an asset tag. Note that if only bar-code data is available, and is unique and able to be used as an element key, this property would be null and the bar-code data would be used as the class key in the Tag property. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PartNumber# | string | read | Part number assigned by the organization responsible for producing or manufacturing the physical element. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PoweredOn# | boolean | read | If TRUE, the physical element is powered on. Otherwise, it is currently off. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Removable# | boolean | read | If TRUE, the package is designed to be taken in and out of the physical container in which it is normally found, without impairing the function of the overall packaging. A package is considered removable even if the power must be off to perform the removal. If the power can be on and the package removed, then the element is removable and can be hot-swapped. For example, an upgradeable processor chip is removable. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Replaceable# | boolean | read | If TRUE, it is possible to replace the element with a physically different one. For example, some computer systems allow the main processor chip to be upgraded to one of a higher clock rating. In this case, the processor is said to be replaceable. All removable components are inherently replaceable. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SecurityBreach# | uint16 | read | Indicates whether a physical breach of the frame was attempted but unsuccessful, or attempted and successful. Values (5)
Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SerialNumber# | string | read | Manufacturer-allocated number used to identify the physical element. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ServiceDescriptions# | string[] | read | Free-form strings that provide detailed explanations for entries in the ServicePhilosophy array. Note: Each entry of this array is related to the entry in ServicePhilosophy array that is located at the same index. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ServicePhilosophy# | uint16[] | read | Indicates whether the frame is serviced from the top, front, back, or side; and whether it has sliding trays or removable sides, and whether the frame is moveable (for example, having rollers). Values (9)
Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SKU# | string | read | Stock-keeping unit number for this physical element. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Status# | string | read | String that indicates the current status of the object. Operational and non-operational status can be defined. Operational status can include "OK", "Degraded", and "Pred Fail". "Pred Fail" indicates that an element is functioning properly, but is predicting a failure (for example, a SMART-enabled hard disk drive). Non-operational status can include "Error", "Starting", "Stopping", and "Service". "Service" can apply during disk mirror-resilvering, reloading a user permissions list, or other administrative work. Not all such work is online, but the managed element is neither "OK" nor in one of the other states. Values include the following: Values (12)
Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Tag# key | string | read | Uniquely identifies the physical element and serves as the element's key. This property can contain information, such as asset tag or serial number data. The key for CIM_PhysicalElement is placed very high in the object hierarchy to independently identify the hardware or entity, regardless of physical placement in (or on) cabinets, adapters, and so on. For example, a removable component that can be hot-swapped can be taken from its containing (scoping) package and be temporarily unused. The object still continues to exist and can even be inserted into a different scoping container. The key for a physical element is an arbitrary string that is defined independently of placement or location-oriented hierarchy. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TypeDescriptions# | string[] | read | Array of free-form strings that provides information about the ChassisTypes array entries. Note: Each array entry is related to the entry in the ChassisTypes property, which is located at the same index. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Version# | string | read | Indicates the version of the physical element. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| VisibleAlarm# | boolean | read | If TRUE, the equipment includes a visible alarm. Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Weight# | real32 | read | Weight of the physical package, in pounds. Unit: pounds Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Width# | real32 | read | Width of the physical package, in inches. Unit: inches Code |
Remarks
The CIM_Chassis class is derived from CIM_PhysicalFrame.
WMI does not implement this class. For more information about classes derived from CIM_Chassis, see Win32 Classes.
This documentation is derived from the CIM class descriptions published by the DMTF. Microsoft may have made changes to correct minor errors, conform to Microsoft SDK documentation standards, or provide more information.
Inheritance
Superclass chain
Known subclasses
Requirements
- Namespace
- root/cimv2
- Minimum client
- Windows Vista
- Minimum server
- Windows Server 2008
- MOF file
- CIMWin32.mof
- DLL
- CIMWin32.dll
Class qualifiers
abstract UUID("{FAF76B72-798C-11D2-AAD1-006008C78BC7}") AMENDMENT
Microsoft source
Descriptions, properties and methods come from the Microsoft documentation (MicrosoftDocs/win32 repository), published under the CC BY 4.0 licence. Formatting and translations are specific to this site; the PowerShell examples are written for it.