Main example
List instances
# Abstract class: Get-CimInstance returns the instances of its subclasses
Get-CimInstance -ClassName CIM_Slot |
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_SystemSlot).
Examples
Decode numeric values
# Lookup table for MaxDataWidth (values documented by Microsoft)
$maxDataWidthName = @{
0 = '8'
1 = '16'
2 = '32'
3 = '64'
4 = '128'
}
Get-CimInstance -ClassName CIM_Slot |
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_Slot |
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_Slot
$cimClass.CimClassProperties |
Select-Object -Property Name, CimType, FlagsProperties
| Name | Type | Access | Description | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Caption# | string | read | Short textual description of the object. Code | |||||||||||||||||||||||||||||||||||||||
| ConnectorPinout# | string | read | Free-form string that describes the pin configuration and signal use of a physical connector. Code | |||||||||||||||||||||||||||||||||||||||
| ConnectorType# | uint16[] | read | Type of physical connector. An array is specified to allow the description of combinations of connector information. For example, one array entry could specify RS-232, another DB-25, and a third could define the connector as "Male". 0 Unknown 1 Other 2 Male 3 Female 4 Shielded 5 Unshielded 6 SCSI (A) High-density (50 pins) 7 SCSI (A) Low-density (50 pins) 8 SCSI (P) High-density (68 pins) 9 SCSI SCA-I (80 pins) 10 SCSI SCA-II (80 pins) 11 SCSI Fibre Channel (DB-9, Copper) 12 SCSI Fibre Channel (Fibre) 13 SCSI Fibre Channel SCA-II (40 pins) 14 SCSI Fibre Channel SCA-II (20 pins) 15 SCSI Fibre Channel BNC 16 ATA 3-1/2 Inch (40 pins) 17 ATA 2-1/2 Inch (44 pins) 18 ATA-2 19 ATA-3 20 ATA/66 21 DB-9 22 DB-15 23 DB-25 24 DB-36 25 RS-232C 26 RS-422 27 RS-423 28 RS-485 29 RS-449 30 V.35 31 X.21 32 IEEE-488 33 AUI 34 UTP Category 3 35 UTP Category 4 36 UTP Category 5 37 BNC 38 RJ11 39 RJ45 40 Fiber MIC 41 Apple AUI 42 Apple GeoPort 43 PCI 44 ISA 45 EISA 46 VESA 47 PCMCIA 48 PCMCIA Type I 49 PCMCIA Type II 50 PCMCIA Type III 51 ZV Port 52 CardBus 53 USB 54 IEEE 1394 55 HIPPI 56 HSSDC (6 pins) 57 GBIC 58 DIN 59 Mini-DIN 60 Micro-DIN 61 PS/2 62 Infrared 63 HP-HIL 64 Access.bus 65 NuBus 66 Centronics 67 Mini-Centronics 68 Mini-Centronics Type-14 69 Mini-Centronics Type-20 70 Mini-Centronics Type-26 71 Bus Mouse 72 ADB 73 AGP 74 VME Bus 75 VME64 76 Proprietary 77 Proprietary Processor Card Slot 78 Proprietary Memory Card Slot 79 Proprietary I/O Riser Slot 80 PCI-66MHZ 81 AGP2X 82 AGP4X 83 PC-98 84 PC-98-Hireso 85 PC-H98 86 PC-98Note 87 PC-98Full 88 SSA SCSI 89 Circular 90 On Board IDE Connector 91 On Board Floppy Connector 92 9 Pin Dual Inline 93 25 Pin Dual Inline 94 50 Pin Dual Inline 95 68 Pin Dual Inline 96 On Board Sound Connector 97 Mini-jack 98 PCI-X 99 Sbus IEEE 1396-1993 32 bit 100 Sbus IEEE 1396-1993 64 bit 101 MCA 102 GIO 103 XIO 104 HIO 105 NGIO 106 PMC 107 MTRJ 108 VF-45 109 Future I/O 110 SC 111 SG 112 Electrical 113 Optical 114 Ribbon 115 GLM 116 1x9 117 Mini SG 118 LC 119 HSSC 120 VHDCI Shielded (68 pins) 121 InfiniBand 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 | |||||||||||||||||||||||||||||||||||||||
| Description# | string | read | Textual description of the object. Code | |||||||||||||||||||||||||||||||||||||||
| HeightAllowed# | real32 | read | Maximum height, in inches, of an adapter card that can be inserted into the slot. Unit: inches Code | |||||||||||||||||||||||||||||||||||||||
| InstallDate# | datetime | read | Date and time the object was installed. This property does not need a value to indicate that the object is installed. Code | |||||||||||||||||||||||||||||||||||||||
| LengthAllowed# | real32 | read | Maximum length, in inches, of an adapter card that can be inserted into the slot. Unit: inches Code | |||||||||||||||||||||||||||||||||||||||
| Manufacturer# | string | read | Organization that produced the physical element. For more information, see the Vendor property of CIM_Product. Code | |||||||||||||||||||||||||||||||||||||||
| MaxDataWidth# | uint16 | read | Maximum bus width, in bits, of adapter cards that can be inserted into the slot. Unit: bits Values (5)
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 | |||||||||||||||||||||||||||||||||||||||
| Number# | uint16 | read | Physical slot number, which can be used as an index into a system slot table, to determine whether the slot is physically occupied. 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 that produced or manufactured the physical element. Code | |||||||||||||||||||||||||||||||||||||||
| PoweredOn# | boolean | read | If TRUE, the physical element is powered on. Code | |||||||||||||||||||||||||||||||||||||||
| PurposeDescription# | string | read | Free-form string that describes how this slot is physically unique and that it may hold special types of hardware. This property only has meaning when the corresponding Boolean SpecialPurpose property is set to TRUE. Code | |||||||||||||||||||||||||||||||||||||||
| SerialNumber# | string | read | Manufacturer-allocated number used to identify the physical element. Code | |||||||||||||||||||||||||||||||||||||||
| SKU# | string | read | Stock-keeping unit number for the physical element. Code | |||||||||||||||||||||||||||||||||||||||
| SpecialPurpose# | boolean | read | If TRUE, the slot is physically unique and may hold special types of hardware, (for example, a graphics processor slot). If TRUE, the PurposeDescription property should specify how the slot is unique or the slot's purpose. Code | |||||||||||||||||||||||||||||||||||||||
| Status# | string | read | Current status of the object. This property is inherited from CIM_ManagedSystemElement. Values include the following: Values (12)
Code | |||||||||||||||||||||||||||||||||||||||
| SupportsHotPlug# | boolean | read | If TRUE, the slot supports hot-plugging of adapter cards. Code | |||||||||||||||||||||||||||||||||||||||
| Tag# key | string | read | Arbitrary string that 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/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 | |||||||||||||||||||||||||||||||||||||||
| ThermalRating# | uint32 | read | Maximum thermal dissipation of the slot, in milliwatts. Unit: milliwatts Code | |||||||||||||||||||||||||||||||||||||||
| VccMixedVoltageSupport# | uint16[] | read | Vcc voltage supported by the slot. Values (4)
Code | |||||||||||||||||||||||||||||||||||||||
| Version# | string | read | Version of the physical element. Code | |||||||||||||||||||||||||||||||||||||||
| VppMixedVoltageSupport# | uint16[] | read | Vpp voltage supported by the slot. Values (5)
Code |
Remarks
The CIM_Slot class is derived from CIM_PhysicalConnector.
WMI does not implement this class. For WMI classes derived from CIM_Slot, 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("{FAF76B86-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.