EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

Win32_SystemEnclosure class

The Win32_SystemEnclosure WMI class represents the properties that are associated with a physical system enclosure.

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

[Provider("CIMWin32")]class Win32_SystemEnclosure : CIM_Chassis
{
  boolean  AudibleAlarm;
  string   BreachDescription;
  string   CableManagementStrategy;
  string   Caption;
  uint16   ChassisTypes[];
  string   CreationClassName;
  sint16   CurrentRequiredOrProduced;
  real32   Depth;
  string   Description;
  uint16   HeatGeneration;
  real32   Height;
  boolean  HotSwappable;
  datetime InstallDate;
  boolean  LockPresent;
  string   Manufacturer;
  string   Model;
  string   Name;
  uint16   NumberOfPowerCords;
  string   OtherIdentifyingInfo;
  string   PartNumber;
  boolean  PoweredOn;
  boolean  Removable;
  boolean  Replaceable;
  uint16   SecurityBreach;
  uint16   SecurityStatus;
  string   SerialNumber;
  string   ServiceDescriptions[];
  uint16   ServicePhilosophy[];
  string   SKU;
  string   SMBIOSAssetTag;
  string   Status;
  string   Tag;
  string   TypeDescriptions[];
  string   Version;
  boolean  VisibleAlarm;
  real32   Weight;
  real32   Width;
};

Members

The Win32_SystemEnclosure class has these types of members:

Methods

The Win32_SystemEnclosure class has these methods.

MethodDescription
IsCompatible

Not implemented.

 

Properties

The Win32_SystemEnclosure class has these properties.

AudibleAlarm
Data type: boolean
Access type: Read-only

If TRUE, the frame is equipped with an audible alarm. This property is inherited from CIM_PhysicalFrame.

BreachDescription
Data type: string
Access type: Read-only

Free-form string that provides more information if the SecurityBreach property indicates that a security-related event occurred. This property is inherited from CIM_PhysicalFrame.

CableManagementStrategy
Data type: string
Access type: Read-only

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. This property is inherited from CIM_PhysicalFrame.

Caption
Data type: string
Access type: Read-only
Qualifiers: MaxLen (64)

Short description of the object—a one-line string. This property is inherited from CIM_ManagedSystemElement.

ChassisTypes
Data type: uint16 array
Access type: Read-only

Array of chassis types. This property is inherited from CIM_Chassis.

ValueMeaning
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

 

CreationClassName
Data type: string
Access type: Read-only
Qualifiers: Key, MaxLen (256)

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. This property is inherited from CIM_PhysicalElement.

CurrentRequiredOrProduced
Data type: sint16
Access type: Read-only
Qualifiers: Units (Amps at 120 Volts)

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). This property is inherited from CIM_Chassis.

Depth
Data type: real32
Access type: Read-only

Depth of the physical package—in inches. This property is inherited from CIM_PhysicalPackage.

Description
Data type: string
Access type: Read-only

Description of the object. This property is inherited from CIM_ManagedSystemElement.

HeatGeneration
Data type: uint16
Access type: Read-only

Amount of heat that is generated by the chassis in BTU/hour. This property is inherited from CIM_Chassis.

Height
Data type: real32
Access type: Read-only

Height of the physical package—in inches. This property is inherited from CIM_PhysicalPackage.

HotSwappable
Data type: boolean
Access type: Read-only

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. This property is inherited from CIM_PhysicalPackage.

InstallDate
Data type: datetime
Access type: Read-only

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

LockPresent
Data type: boolean
Access type: Read-only

If TRUE, the frame is protected with a lock. This property is inherited from CIM_PhysicalFrame.

Manufacturer
Data type: string
Access type: Read-only
Qualifiers: MaxLen (256)

Name of the organization that produces the physical element. This property is inherited from CIM_PhysicalElement.

Model
Data type: string
Access type: Read-only
Qualifiers: MaxLen (64)

Name by which the physical element is known. This property is inherited from CIM_PhysicalElement.

Name
Data type: string
Access type: Read-only

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

NumberOfPowerCords
Data type: uint16
Access type: Read-only

Number of power cords that must be connected to the chassis for all of the components to operate. This property is inherited from CIM_Chassis.

OtherIdentifyingInfo
Data type: string
Access type: Read-only

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. This property is inherited from CIM_PhysicalElement.

PartNumber
Data type: string
Access type: Read-only
Qualifiers: MaxLen (256)

Part number that is assigned by the organization that produces or manufacturing the physical element. This property is inherited from CIM_PhysicalElement.

PoweredOn
Data type: boolean
Access type: Read-only

If TRUE, the physical element is powered ON. This property is inherited from CIM_PhysicalElement.

Removable
Data type: boolean
Access type: Read-only

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. This property is inherited from CIM_PhysicalPackage.

Replaceable
Data type: boolean
Access type: Read-only

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. This property is inherited from CIM_PhysicalPackage.

SecurityBreach
Data type: uint16
Access type: Read-only

Status of a physical breach of the frame. This property is inherited from CIM_PhysicalFrame.

ValueMeaning
1

Other

2

Unknown

3

No Breach

4

Breach Attempted

5

Breach Successful

 

SecurityStatus
Data type: uint16
Access type: Read-only

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

ValueMeaning
1

Other

2

Unknown

3

None

4

External Interface Locked Out

5

External Interface Enabled

 

SerialNumber
Data type: string
Access type: Read-only
Qualifiers: MaxLen (64)

Manufacturer-allocated number used to identify the physical element. This property is inherited from CIM_PhysicalElement.

ServiceDescriptions
Data type: string array
Access type: Read-only

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. This property is inherited from CIM_PhysicalFrame.

ServicePhilosophy
Data type: uint16 array
Access type: Read-only

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. This property is inherited from CIM_PhysicalFrame.

ValueMeaning
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

 

SKU
Data type: string
Access type: Read-only
Qualifiers: MaxLen (64)

Stock keeping unit number for the physical element. This property is inherited from CIM_PhysicalElement.

SMBIOSAssetTag
Data type: string
Access type: Read-only

Asset tag number of the system enclosure.

Status
Data type: string
Access type: Read-only
Qualifiers: MaxLen (10)

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. This property is inherited from CIM_ManagedSystemElement.

The values are:

"OK"
"Error"
"Degraded"
"Unknown"
"Pred Fail"
"Starting"
"Stopping"
"Service"
"Stressed"
"NonRecover"
"No Contact"
"Lost Comm"
Tag
Data type: string
Access type: Read-only
Qualifiers: Key, MaxLen (256)

Unique identifier of the system enclosure. This property is inherited from CIM_PhysicalElement.

Example: "System Enclosure 1"

TypeDescriptions
Data type: string array
Access type: Read-only

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. This property is inherited from CIM_Chassis.

Version
Data type: string
Access type: Read-only
Qualifiers: MaxLen (64)

Version of the physical element. This property is inherited from CIM_PhysicalElement.

VisibleAlarm
Data type: boolean
Access type: Read-only

If TRUE, the equipment includes a visible alarm. This property is inherited from CIM_PhysicalFrame.

Weight
Data type: real32
Access type: Read-only

Weight of the physical package in pounds. This property is inherited from CIM_PhysicalPackage.

Width
Data type: real32
Access type: Read-only

Width of the physical package in inches. This property is inherited from CIM_PhysicalPackage.

Remarks

The Win32_SystemEnclosure class is derived from CIM_Chassis.

Examples

The Multithreaded System Asset Gathering with Powershell PowerShell example on TechNet gallery uses a number of classes, including Win32_SystemEnclosure, to retrieve data from a system.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

See also

Computer System Hardware Classes
WMI Tasks: Computer Hardware

 

 

Afficher:
© 2014 Microsoft