Win32_SystemEnclosure

Win32 System Enclosure
root/cimv2dynamickey : Tag

Represents the properties that are associated with a physical system enclosure.

On this page

Main example

List instances

# All instances of Win32_SystemEnclosure, with the main properties
Get-CimInstance -ClassName Win32_SystemEnclosure |
    Select-Object -Property @(
        'Tag'
        'Description'
        'Status'
        'Manufacturer'
        'Model'
        'Version'
        'SerialNumber'
    )

Examples

Filter with WQL

# WQL filter evaluated by the provider: SecurityBreach = 5 (Breach Successful)
Get-CimInstance -ClassName Win32_SystemEnclosure -Filter 'SecurityBreach = 5' |
    Select-Object -Property @(
        'Tag'
        'Description'
        'Status'
        'Manufacturer'
        'Model'
        'Version'
        'SerialNumber'
    )

The filter is evaluated by the WMI provider: less data is transferred than with Where-Object.

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'
}
# Lookup table for SecurityStatus (values documented by Microsoft)
$securityStatusName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'None'
    4 = 'External interface locked out'
    5 = 'External interface enabled'
}

Get-CimInstance -ClassName Win32_SystemEnclosure |
    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 Win32_SystemEnclosure |
        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 Win32_SystemEnclosure
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

37 of 37 properties
NameTypeAccessDescription
AudibleAlarmbooleanread

If TRUE, the frame is equipped with an audible alarm.

Code
# Value of AudibleAlarm for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, AudibleAlarm |
    Select-Object -Property Tag, AudibleAlarm
BreachDescriptionstringread

Free-form string that provides more information if the SecurityBreach property indicates that a security-related event occurred.

Code
# Value of BreachDescription for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, BreachDescription |
    Select-Object -Property Tag, BreachDescription
CableManagementStrategystringread

Free-form string that contains information about 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 property contains information to aid in assembly and service of the frame.

Code
# Value of CableManagementStrategy for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, CableManagementStrategy |
    Select-Object -Property Tag, CableManagementStrategy
Captionstringread

Short description of the object—a one-line string.

Code
# Value of Caption for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Caption |
    Select-Object -Property Tag, Caption
ChassisTypesuint16[]read

Array of chassis types.

This value comes from the Type member of the System Enclosure or Chassis structure in the SMBIOS information.

Values (27)
ValueLabelDescription
1Other
2Unknown
3Desktop
4Low Profile Desktop
5Pizza Box
6Mini Tower
7Tower
8Portable
9Laptop
10Notebook
11Hand Held
12Docking Station
13All in One
14Sub Notebook
15Space-Saving
16Lunch Box
17Main System Chassis
18Expansion Chassis
19SubChassis
20Bus Expansion Chassis
21Peripheral Chassis
22Storage Chassis
23Rack Mount Chassis
24Sealed-Case PC
30Tablet
31Convertible
32Detachable
Code
# Value of ChassisTypes for each instance
# Lookup table for ChassisTypes (values documented by Microsoft)
$chassisTypesName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'Desktop'
    4 = 'Low Profile Desktop'
    5 = 'Pizza Box'
    6 = 'Mini Tower'
    7 = 'Tower'
    8 = 'Portable'
    9 = 'Laptop'
    10 = 'Notebook'
    11 = 'Hand Held'
    12 = 'Docking Station'
    13 = 'All in One'
    14 = 'Sub Notebook'
    15 = 'Space-Saving'
    16 = 'Lunch Box'
    17 = 'Main System Chassis'
    18 = 'Expansion Chassis'
    19 = 'SubChassis'
    20 = 'Bus Expansion Chassis'
    21 = 'Peripheral Chassis'
    22 = 'Storage Chassis'
    23 = 'Rack Mount Chassis'
    24 = 'Sealed-Case PC'
    30 = 'Tablet'
    31 = 'Convertible'
    32 = 'Detachable'
}
# ChassisTypes is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName Win32_SystemEnclosure -Property ChassisTypes |
    Select-Object -ExpandProperty ChassisTypes |
    ForEach-Object -Process { $chassisTypesName[[int]$_] }
CreationClassName keystringread

Name of the first concrete class that appears in the inheritance chain that is used in the creation of an instance. When used with the other key properties of the class, this property allows all instances of this class and its subclasses to be identified uniquely.

Code
# Value of CreationClassName for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, CreationClassName |
    Select-Object -Property Tag, CreationClassName
CurrentRequiredOrProducedsint16read

Current that is required by the chassis at 120V. If power is provided by the chassis—as in the case of an uninterruptible power supply (UPS)—this property may indicate the amperage produced (as a negative number).

Unit: amps at 120 volts

Code
# Value of CurrentRequiredOrProduced for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, CurrentRequiredOrProduced |
    Select-Object -Property Tag, CurrentRequiredOrProduced
Depthreal32read

Depth of the physical package—in inches.

Unit: inches

Code
# Value of Depth for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Depth |
    Select-Object -Property Tag, Depth
Descriptionstringread

Description of the object.

Code
# Value of Description for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Description |
    Select-Object -Property Tag, Description
HeatGenerationuint16read

Amount of heat that is generated by the chassis in BTU/hour.

Unit: BTU per hour

Code
# Value of HeatGeneration for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, HeatGeneration |
    Select-Object -Property Tag, HeatGeneration
Heightreal32read

Height of the physical package—in inches.

Unit: inches

Code
# Value of Height for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Height |
    Select-Object -Property Tag, Height
HotSwappablebooleanread

If TRUE, a physical package can be hot-swapped (if it is possible to replace the element with a physically different but equivalent one while the containing package has power applied to it). For example, a disk drive package that is inserted using SCA connectors is removable and can be hot-swapped. All packages that can be hot-swapped are inherently removable and replaceable.

Code
# Value of HotSwappable for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, HotSwappable |
    Select-Object -Property Tag, HotSwappable
InstallDatedatetimeread

Date and time the object was installed. This property does not require a value to indicate that the object is installed.

Code
# Value of InstallDate for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, InstallDate |
    Select-Object -Property Tag, InstallDate
LockPresentbooleanread

If TRUE, the frame is protected with a lock.

Code
# Value of LockPresent for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, LockPresent |
    Select-Object -Property Tag, LockPresent
Manufacturerstringread

Name of the organization that produces the physical element.

This value comes from the Manufacturer member of the System Enclosure or Chassis structure in the SMBIOS information.

Code
# Value of Manufacturer for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Manufacturer |
    Select-Object -Property Tag, Manufacturer
Modelstringread

Name by which the physical element is known.

Code
# Value of Model for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Model |
    Select-Object -Property Tag, Model
Namestringread

Label by which the object is known. When subclassed, the property can be overridden to be a key property.

Code
# Value of Name for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Name |
    Select-Object -Property Tag, Name
NumberOfPowerCordsuint16read

Number of power cords that must be connected to the chassis for all of the components to operate.

Code
# Value of NumberOfPowerCords for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, NumberOfPowerCords |
    Select-Object -Property Tag, NumberOfPowerCords
OtherIdentifyingInfostringread

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 that also has an asset tag. Be aware that if only bar code data is available and is unique or able to be used as an element key, this property would be NULL and the bar code data used as the class key, in the tag property.

Code
# Value of OtherIdentifyingInfo for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, OtherIdentifyingInfo |
    Select-Object -Property Tag, OtherIdentifyingInfo
PartNumberstringread

Part number that is assigned by the organization that produces or manufacturing the physical element.

Code
# Value of PartNumber for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, PartNumber |
    Select-Object -Property Tag, PartNumber
PoweredOnbooleanread

If TRUE, the physical element is powered ON.

Code
# Value of PoweredOn for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, PoweredOn |
    Select-Object -Property Tag, PoweredOn
Removablebooleanread

If TRUE, a physical package is removable (if it 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 can still be removable if the power must be "OFF" to perform the removal. If the package can be removed while the power is ON, then the element is removable and can be hot-swapped. For example, an extra battery in a laptop is removable, as is a disk drive package that is inserted using Server Configuration Application (SCA) connectors. However, the latter can be hot-swapped. A laptop display is not removable, nor is a nonredundant power supply. Removing these components would affect the function of the overall packaging or is impossible because of the tight integration of the package.

Code
# Value of Removable for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Removable |
    Select-Object -Property Tag, Removable
Replaceablebooleanread

If TRUE, this physical media component can be replaced 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. Another example is a power supply package mounted on sliding rails. All removable packages are inherently replaceable.

Code
# Value of Replaceable for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Replaceable |
    Select-Object -Property Tag, Replaceable
SecurityBreachuint16read

Status of a physical breach of the frame.

Values (5)
ValueLabelDescription
1Other
2Unknown
3No Breach
4Breach Attempted
5Breach Successful
Code
# Value of SecurityBreach for each instance
# 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 Win32_SystemEnclosure -Property Tag, SecurityBreach |
    Select-Object -Property @(
        'Tag'
        @{ Name = 'SecurityBreach'; Expression = { $securityBreachName[[int]$_.SecurityBreach] } }
    )
SecurityStatusuint16read

Security setting for external input, for example, a keyboard, to a computer.

This value comes from the Security Status member of the System Enclosure or Chassis structure in the SMBIOS information.

Values (5)
ValueLabelDescription
1Other
2Unknown
3None
4External interface locked out
5External interface enabled
Code
# Value of SecurityStatus for each instance
# Lookup table for SecurityStatus (values documented by Microsoft)
$securityStatusName = @{
    1 = 'Other'
    2 = 'Unknown'
    3 = 'None'
    4 = 'External interface locked out'
    5 = 'External interface enabled'
}
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, SecurityStatus |
    Select-Object -Property @(
        'Tag'
        @{ Name = 'SecurityStatus'; Expression = { $securityStatusName[[int]$_.SecurityStatus] } }
    )
SerialNumberstringread

Manufacturer-allocated number used to identify the physical element.

This value comes from the Serial Number member of the System Enclosure or Chassis structure in the SMBIOS information.

Code
# Value of SerialNumber for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, SerialNumber |
    Select-Object -Property Tag, SerialNumber
ServiceDescriptionsstring[]read

Array of more detailed explanations for any of the entries in the ServicePhilosophy array. Be aware that each entry of this array is related to the entry in ServicePhilosophy that is located at the same index.

Code
# Value of ServiceDescriptions for each instance
# ServiceDescriptions is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName Win32_SystemEnclosure -Property ServiceDescriptions |
    Select-Object -ExpandProperty ServiceDescriptions
ServicePhilosophyuint16[]read

Array that includes whether the frame is serviced from the top, front, back, or side, whether the frame has sliding trays or removable sides, and whether the frame is moveable—for example, having rollers.

Values (9)
ValueLabelDescription
0Unknown
1Other
2Service From Top
3Service From Front
4Service From Back
5Service From Side
6Sliding Trays
7Removable Sides
8Moveable
Code
# Value of ServicePhilosophy for each instance
# Lookup table for ServicePhilosophy (values documented by Microsoft)
$servicePhilosophyName = @{
    0 = 'Unknown'
    1 = 'Other'
    2 = 'Service From Top'
    3 = 'Service From Front'
    4 = 'Service From Back'
    5 = 'Service From Side'
    6 = 'Sliding Trays'
    7 = 'Removable Sides'
    8 = 'Moveable'
}
# ServicePhilosophy is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName Win32_SystemEnclosure -Property ServicePhilosophy |
    Select-Object -ExpandProperty ServicePhilosophy |
    ForEach-Object -Process { $servicePhilosophyName[[int]$_] }
SKUstringread

Stock keeping unit number for the physical element.

Code
# Value of SKU for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, SKU |
    Select-Object -Property Tag, SKU
SMBIOSAssetTagstringread

Asset tag number of the system enclosure.

This value comes from the Asset Tag Number member of the System Enclosure or Chassis structure in the SMBIOS information.

Code
# Value of SMBIOSAssetTag for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, SMBIOSAssetTag |
    Select-Object -Property Tag, SMBIOSAssetTag
Statusstringread

Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: "OK", "Degraded", and "Pred Fail" (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: "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 online, yet the managed element is neither "OK" nor in one of the other states.

Values include the following:

Values (12)
ValueLabelDescription
OKOK
ErrorError
DegradedDegraded
UnknownUnknown
Pred FailPred Fail
StartingStarting
StoppingStopping
ServiceService
StressedStressed
NonRecoverNonRecover
No ContactNo Contact
Lost CommLost Comm
Code
# Value of Status for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Status |
    Select-Object -Property Tag, Status
Tag keystringread

Unique identifier of the system enclosure.

Example: "System Enclosure 1"

Code
# Value of Tag for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag |
    Select-Object -Property Tag
TypeDescriptionsstring[]read

Array of more information about the ChassisTypes array entries. Be aware that each entry of this array is related to the entry in ChassisTypes that is located at the same index.

Code
# Value of TypeDescriptions for each instance
# TypeDescriptions is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName Win32_SystemEnclosure -Property TypeDescriptions |
    Select-Object -ExpandProperty TypeDescriptions
Versionstringread

Version of the physical element.

This value comes from the Version member of the System Enclosure or Chassis structure in the SMBIOS information.

Code
# Value of Version for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Version |
    Select-Object -Property Tag, Version
VisibleAlarmbooleanread

If TRUE, the equipment includes a visible alarm.

Code
# Value of VisibleAlarm for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, VisibleAlarm |
    Select-Object -Property Tag, VisibleAlarm
Weightreal32read

Weight of the physical package in pounds.

Unit: pounds

Code
# Value of Weight for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Weight |
    Select-Object -Property Tag, Weight
Widthreal32read

Width of the physical package in inches.

Unit: inches

Code
# Value of Width for each instance
Get-CimInstance -ClassName Win32_SystemEnclosure -Property Tag, Width |
    Select-Object -Property Tag, Width

Remarks

The Win32_SystemEnclosure class is derived from CIM_Chassis.

Inheritance

Superclass chain

  1. CIM_ManagedSystemElement
  2. CIM_PhysicalElement
  3. CIM_PhysicalPackage
  4. CIM_PhysicalFrame
  5. CIM_Chassis
  6. Win32_SystemEnclosure

Known subclasses

No known subclass.

Requirements

Namespace
root/cimv2
Minimum client
Windows Vista
Minimum server
Windows Server 2008
Provider
CIMWin32
MOF file
CIMWin32.mof
DLL
CIMWin32.dll
Class qualifiers

Dynamic Provider("CIMWin32") UUID("{FAF76B94-798C-11D2-AAD1-006008C78BC7}") AMENDMENT

Microsoft source

Source: Microsoft Learn

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.