Win32_SystemSlot

The Win32_SystemSlot WMI class represents physical connection points including ports, motherboard slots and peripherals, and proprietary connection points.

The Win32_SystemSlot WMI class represents physical connection points including ports, motherboard slots and peripherals, and proprietary connection points.

Methods

Win32_SystemSlot has no methods.

Properties

Win32_SystemSlot returns 35 properties:

'BusNumber','Caption','ConnectorPinout','ConnectorType','CreationClassName',
'CurrentUsage','Description','DeviceNumber','FunctionNumber','HeightAllowed','InstallDate',
'LengthAllowed','Manufacturer','MaxDataWidth','Model','Name','Number','OtherIdentifyingInfo',
'PartNumber','PMESignal','PoweredOn','PurposeDescription','SegmentGroupNumber','SerialNumber',
'Shared','SKU','SlotDesignation','SpecialPurpose','Status','SupportsHotPlug','Tag',
'ThermalRating','VccMixedVoltageSupport','Version','VppMixedVoltageSupport'

Unless explicitly marked as writeable, all properties are read-only. Read all properties for all instances:

Get-CimInstance -ClassName Win32_SystemSlot -Property *

Most WMI classes return one or more instances.

When Get-CimInstance returns no result, then apparently no instances of class Win32_SystemSlot exist. This is normal behavior.

Either the class is not implemented on your system (may be deprecated or due to missing drivers, i.e. CIM_VideoControllerResolution), or there are simply no physical representations of this class currently available (i.e. Win32_TapeDrive).

BusNumber

UINT32

SMBIOS Bus Number.

This value comes from the Bus Number member of the System Slots structure in the SMBIOS information.

Windows Server® 2012® R2, Windows® 8.1, Windows Server® 2012, Windows® 8, Windows Server® 2008® R2, Windows® 7, Windows Server® 2008 and Windows® Vista: This property is not supported before Windows® 10 and Windows Server® 2016.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, BusNumber

Caption

STRING MAX 64 CHAR

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

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, Caption

ConnectorPinout

STRING

Free-form string that describes the pin configuration and signal usage of a physical connector.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, ConnectorPinout

ConnectorType

UINT16 ARRAY

Array of physical attributes of the connector that this slot uses.

This value comes from the Slot Type member of the System Slots structure in the SMBIOS information.

ConnectorType returns a numeric value. To translate it into a meaningful text, use any of the following approaches:

Use a PowerShell Hashtable
$ConnectorType_map = @{
      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 = 'PCI-X'
     89 = 'Sbus IEEE 1396-1993 32 bit'
     90 = 'Sbus IEEE 1396-1993 64 bit'
     91 = 'MCA'
     92 = 'GIO'
     93 = 'XIO'
     94 = 'HIO'
     95 = 'NGIO'
     96 = 'PMC'
     97 = 'Future I/O'
     98 = 'InfiniBand'
     99 = 'AGP8X'
    100 = 'PCI-E'
}
Use a switch statement
switch([int]$value)
{
  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         {'PCI-X'}
  89         {'Sbus IEEE 1396-1993 32 bit'}
  90         {'Sbus IEEE 1396-1993 64 bit'}
  91         {'MCA'}
  92         {'GIO'}
  93         {'XIO'}
  94         {'HIO'}
  95         {'NGIO'}
  96         {'PMC'}
  97         {'Future I/O'}
  98         {'InfiniBand'}
  99         {'AGP8X'}
  100        {'PCI-E'}
  default    {"$value"}
}
Use Enum structure
Enum EnumConnectorType
{
  Unknown                             = 0
  Other                               = 1
  Male                                = 2
  Female                              = 3
  Shielded                            = 4
  Unshielded                          = 5
  SCSI_A_High_Density_50_pins         = 6
  SCSI_A_Low_Density_50_pins          = 7
  SCSI_P_High_Density_68_pins         = 8
  SCSI_SCA_I_80_pins                  = 9
  SCSI_SCA_II_80_pins                 = 10
  SCSI_Fibre_Channel_DB_9_Copper      = 11
  SCSI_Fibre_Channel_Fibre            = 12
  SCSI_Fibre_Channel_SCA_II_40_pins   = 13
  SCSI_Fibre_Channel_SCA_II_20_pins   = 14
  SCSI_Fibre_Channel_BNC              = 15
  ATA_3_12_Inch_40_pins               = 16
  ATA_2_12_Inch_44_pins               = 17
  ATA_2                               = 18
  ATA_3                               = 19
  ATA66                               = 20
  DB_9                                = 21
  DB_15                               = 22
  DB_25                               = 23
  DB_36                               = 24
  RS_232C                             = 25
  RS_422                              = 26
  RS_423                              = 27
  RS_485                              = 28
  RS_449                              = 29
  V35                                 = 30
  X21                                 = 31
  IEEE_488                            = 32
  AUI                                 = 33
  UTP_Category_3                      = 34
  UTP_Category_4                      = 35
  UTP_Category_5                      = 36
  BNC                                 = 37
  RJ11                                = 38
  RJ45                                = 39
  Fiber_MIC                           = 40
  Apple_AUI                           = 41
  Apple_GeoPort                       = 42
  PCI                                 = 43
  ISA                                 = 44
  EISA                                = 45
  VESA                                = 46
  PCMCIA                              = 47
  PCMCIA_Type_I                       = 48
  PCMCIA_Type_II                      = 49
  PCMCIA_Type_III                     = 50
  ZV_Port                             = 51
  CardBus                             = 52
  USB                                 = 53
  IEEE_1394                           = 54
  HIPPI                               = 55
  HSSDC_6_pins                        = 56
  GBIC                                = 57
  DIN                                 = 58
  Mini_DIN                            = 59
  Micro_DIN                           = 60
  PS2                                 = 61
  Infrared                            = 62
  HP_HIL                              = 63
  Accessbus                           = 64
  NuBus                               = 65
  Centronics                          = 66
  Mini_Centronics                     = 67
  Mini_Centronics_Type_14             = 68
  Mini_Centronics_Type_20             = 69
  Mini_Centronics_Type_26             = 70
  Bus_Mouse                           = 71
  ADB                                 = 72
  AGP                                 = 73
  VME_Bus                             = 74
  VME64                               = 75
  Proprietary                         = 76
  Proprietary_Processor_Card_Slot     = 77
  Proprietary_Memory_Card_Slot        = 78
  Proprietary_IO_Riser_Slot           = 79
  PCI_66MHZ                           = 80
  AGP2X                               = 81
  AGP4X                               = 82
  PC_98                               = 83
  PC_98_Hireso                        = 84
  PC_H98                              = 85
  PC_98Note                           = 86
  PC_98Full                           = 87
  PCI_X                               = 88
  Sbus_IEEE_1396_1993_32_bit          = 89
  Sbus_IEEE_1396_1993_64_bit          = 90
  MCA                                 = 91
  GIO                                 = 92
  XIO                                 = 93
  HIO                                 = 94
  NGIO                                = 95
  PMC                                 = 96
  Future_IO                           = 97
  InfiniBand                          = 98
  AGP8X                               = 99
  PCI_E                               = 100
}

Examples

Use $ConnectorType_map in a calculated property for Select-Object
<# 
  this example uses a hashtable to translate raw numeric values for 
  property "ConnectorType" to friendly text

  Note: to use other properties than "ConnectorType", look up the appropriate 
  translation hashtable for the property you would like to use instead.
#>

#region define hashtable to translate raw values to friendly text

# Please note: this hashtable is specific for property "ConnectorType" 
# to translate other properties, use their translation table instead
$ConnectorType_map = @{
      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 = 'PCI-X'
     89 = 'Sbus IEEE 1396-1993 32 bit'
     90 = 'Sbus IEEE 1396-1993 64 bit'
     91 = 'MCA'
     92 = 'GIO'
     93 = 'XIO'
     94 = 'HIO'
     95 = 'NGIO'
     96 = 'PMC'
     97 = 'Future I/O'
     98 = 'InfiniBand'
     99 = 'AGP8X'
    100 = 'PCI-E'
}

#endregion define hashtable

#region define calculated property (to be used with Select-Object)

<#
  a calculated property is defined by a hashtable with keys "Name" and "Expression"
  "Name" defines the name of the property (in this example, it is "ConnectorType", but you can rename it to anything else)
  "Expression" defines a scriptblock that calculates the content of this property
  in this example, the scriptblock uses the hashtable defined earlier to translate each numeric
  value to its friendly text counterpart:
#>
 
$ConnectorType = @{
  Name = 'ConnectorType'
  Expression = {
    # property is an array, so process all values
    $result = foreach($value in $_.ConnectorType)
    {
        # important: convert original value to [int] because
        # hashtable keys are type-aware:
        $ConnectorType_map[[int]$value]
    }
    # uncomment to get a comma-separated string instead
    # of a string array:
    $result <#-join ', '#>
  }  
}
#endregion define calculated property

# retrieve the instances, and output the properties "Caption" and "ConnectorType". The latter
# is defined by the hashtable in $ConnectorType: 
Get-CimInstance -Class Win32_SystemSlot | Select-Object -Property Caption, $ConnectorType

# ...or dump content of property ConnectorType:
$friendlyValues = Get-CimInstance -Class Win32_SystemSlot | 
    Select-Object -Property $ConnectorType |
    Select-Object -ExpandProperty ConnectorType

# output values
$friendlyValues

# output values as comma separated list
$friendlyValues -join ', '

# output values as bullet list
$friendlyValues | ForEach-Object { "- $_" }
Use $ConnectorType_map to directly translate raw values from an instance
<# 
  this example uses a hashtable to manually translate raw numeric values 
  for property "Win32_SystemSlot" to friendly text. This approach is ideal when there
  is just one instance to work with.

  Note: to use other properties than "Win32_SystemSlot", look up the appropriate 
  translation hashtable for the property you would like to use instead.
#>

#region define hashtable to translate raw values to friendly text

# Please note: this hashtable is specific for property "Win32_SystemSlot" 
# to translate other properties, use their translation table instead
$ConnectorType_map = @{
      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 = 'PCI-X'
     89 = 'Sbus IEEE 1396-1993 32 bit'
     90 = 'Sbus IEEE 1396-1993 64 bit'
     91 = 'MCA'
     92 = 'GIO'
     93 = 'XIO'
     94 = 'HIO'
     95 = 'NGIO'
     96 = 'PMC'
     97 = 'Future I/O'
     98 = 'InfiniBand'
     99 = 'AGP8X'
    100 = 'PCI-E'
}

#endregion define hashtable

# get one instance:
$instance = Get-CimInstance -Class Win32_SystemSlot | Select-Object -First 1

<#
  IMPORTANT: this example processes only one instance to illustrate
  the number-to-text translation. To process all instances, replace
  "Select-Object -First 1" with a "Foreach-Object" loop, and use
  the iterator variable $_ instead of $instance
#>

# query the property (hint: the property is an array!)
$rawValues = $instance.ConnectorType  

# translate all raw values into friendly names:
$friendlyNames = foreach($rawValue in $rawValues)
{ $ConnectorType_map[[int]$rawValue] }

# output values
$friendlyValues

# output values as comma separated list
$friendlyValues -join ', '

# output values as bullet list
$friendlyValues | ForEach-Object { "- $_" }
Use a switch statement inside a calculated property for Select-Object
<# 
  this example uses a switch clause to translate raw numeric 
  values for property "ConnectorType" to friendly text. The switch
  clause is embedded into a calculated property so there is
  no need to refer to external variables for translation.

  Note: to use other properties than "ConnectorType", look up the appropriate 
  translation switch clause for the property you would like to use instead.
#>

#region define calculated property (to be used with Select-Object)

<#
  a calculated property is defined by a hashtable with keys "Name" and "Expression"
  "Name" defines the name of the property (in this example, it is "ConnectorType", but you can rename it to anything else)
  "Expression" defines a scriptblock that calculates the content of this property
  in this example, the scriptblock uses the hashtable defined earlier to translate each numeric
  value to its friendly text counterpart:
#>
 
$ConnectorType = @{
  Name = 'ConnectorType'
  Expression = {
    # property is an array, so process all values
    $result = foreach($value in $_.ConnectorType)
    {
        switch([int]$value)
      {
        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         {'PCI-X'}
        89         {'Sbus IEEE 1396-1993 32 bit'}
        90         {'Sbus IEEE 1396-1993 64 bit'}
        91         {'MCA'}
        92         {'GIO'}
        93         {'XIO'}
        94         {'HIO'}
        95         {'NGIO'}
        96         {'PMC'}
        97         {'Future I/O'}
        98         {'InfiniBand'}
        99         {'AGP8X'}
        100        {'PCI-E'}
        default    {"$value"}
      }
      
    }
    $result
  }  
}
#endregion define calculated property

# retrieve all instances...
Get-CimInstance -ClassName Win32_SystemSlot | 
  # ...and output properties "Caption" and "ConnectorType". The latter is defined
  # by the hashtable in $ConnectorType:
  Select-Object -Property Caption, $ConnectorType
Use the Enum from above to auto-translate the code values
<# 
  this example translates raw values by means of type conversion
  the friendly names are defined as enumeration using the
  keyword "enum" (PowerShell 5 or better)
  
  The raw value(s) are translated to friendly text by 
  simply converting them into the enum type.
  
  Note: to use other properties than "Win32_SystemSlot", look up the appropriate 
  enum definition for the property you would like to use instead.
#>


#region define enum with value-to-text translation:
Enum EnumConnectorType
{
  Unknown                             = 0
  Other                               = 1
  Male                                = 2
  Female                              = 3
  Shielded                            = 4
  Unshielded                          = 5
  SCSI_A_High_Density_50_pins         = 6
  SCSI_A_Low_Density_50_pins          = 7
  SCSI_P_High_Density_68_pins         = 8
  SCSI_SCA_I_80_pins                  = 9
  SCSI_SCA_II_80_pins                 = 10
  SCSI_Fibre_Channel_DB_9_Copper      = 11
  SCSI_Fibre_Channel_Fibre            = 12
  SCSI_Fibre_Channel_SCA_II_40_pins   = 13
  SCSI_Fibre_Channel_SCA_II_20_pins   = 14
  SCSI_Fibre_Channel_BNC              = 15
  ATA_3_12_Inch_40_pins               = 16
  ATA_2_12_Inch_44_pins               = 17
  ATA_2                               = 18
  ATA_3                               = 19
  ATA66                               = 20
  DB_9                                = 21
  DB_15                               = 22
  DB_25                               = 23
  DB_36                               = 24
  RS_232C                             = 25
  RS_422                              = 26
  RS_423                              = 27
  RS_485                              = 28
  RS_449                              = 29
  V35                                 = 30
  X21                                 = 31
  IEEE_488                            = 32
  AUI                                 = 33
  UTP_Category_3                      = 34
  UTP_Category_4                      = 35
  UTP_Category_5                      = 36
  BNC                                 = 37
  RJ11                                = 38
  RJ45                                = 39
  Fiber_MIC                           = 40
  Apple_AUI                           = 41
  Apple_GeoPort                       = 42
  PCI                                 = 43
  ISA                                 = 44
  EISA                                = 45
  VESA                                = 46
  PCMCIA                              = 47
  PCMCIA_Type_I                       = 48
  PCMCIA_Type_II                      = 49
  PCMCIA_Type_III                     = 50
  ZV_Port                             = 51
  CardBus                             = 52
  USB                                 = 53
  IEEE_1394                           = 54
  HIPPI                               = 55
  HSSDC_6_pins                        = 56
  GBIC                                = 57
  DIN                                 = 58
  Mini_DIN                            = 59
  Micro_DIN                           = 60
  PS2                                 = 61
  Infrared                            = 62
  HP_HIL                              = 63
  Accessbus                           = 64
  NuBus                               = 65
  Centronics                          = 66
  Mini_Centronics                     = 67
  Mini_Centronics_Type_14             = 68
  Mini_Centronics_Type_20             = 69
  Mini_Centronics_Type_26             = 70
  Bus_Mouse                           = 71
  ADB                                 = 72
  AGP                                 = 73
  VME_Bus                             = 74
  VME64                               = 75
  Proprietary                         = 76
  Proprietary_Processor_Card_Slot     = 77
  Proprietary_Memory_Card_Slot        = 78
  Proprietary_IO_Riser_Slot           = 79
  PCI_66MHZ                           = 80
  AGP2X                               = 81
  AGP4X                               = 82
  PC_98                               = 83
  PC_98_Hireso                        = 84
  PC_H98                              = 85
  PC_98Note                           = 86
  PC_98Full                           = 87
  PCI_X                               = 88
  Sbus_IEEE_1396_1993_32_bit          = 89
  Sbus_IEEE_1396_1993_64_bit          = 90
  MCA                                 = 91
  GIO                                 = 92
  XIO                                 = 93
  HIO                                 = 94
  NGIO                                = 95
  PMC                                 = 96
  Future_IO                           = 97
  InfiniBand                          = 98
  AGP8X                               = 99
  PCI_E                               = 100
}

#endregion define enum

# get one instance:
$instance = Get-CimInstance -Class Win32_SystemSlot | Select-Object -First 1

<#
  IMPORTANT: this example processes only one instance to focus on
  the number-to-text type conversion. 
  
  To process all instances, replace   "Select-Object -First 1" 
  with a "Foreach-Object" loop, and use the iterator variable 
  $_ instead of $instance
#>

# query the property:
$rawValue = $instance.ConnectorType

#region using strict type conversion

<#
  Note: strict type conversion fails if the raw value is 
  not defined by the enum. So if the list of allowable values
  was extended and the enum does not match the value,
  an exception is thrown
#>

# convert the property to the enum **ConnectorType** 
[EnumConnectorType[]]$rawValue 

# get a comma-separated string:
[EnumConnectorType[]]$rawValue -join ',' 
#endregion

#region using operator "-as"

<#
  Note: the operator "-as" accepts values not defined
  by the enum and returns $null instead of throwing
  an exception
#>

$rawValue -as [EnumConnectorType[]]
#endregion

Enums must cover all possible values. If ConnectorType returns a value that is not defined in the enum, an exception occurs. The exception reports the value that was missing in the enum. To fix, add the missing value to the enum.

CreationClassName

STRING MAX 256 CHAR

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

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, CreationClassName

CurrentUsage

UINT16

Status of system slot use.

This value comes from the Current Usage member of the System Slots structure in the SMBIOS information.

CurrentUsage returns a numeric value. To translate it into a meaningful text, use any of the following approaches:

Use a PowerShell Hashtable
$CurrentUsage_map = @{
      0 = 'Reserved'
      1 = 'Other'
      2 = 'Unknown'
      3 = 'Available'
      4 = 'In use'
}
Use a switch statement
switch([int]$value)
{
  0          {'Reserved'}
  1          {'Other'}
  2          {'Unknown'}
  3          {'Available'}
  4          {'In use'}
  default    {"$value"}
}
Use Enum structure
Enum EnumCurrentUsage
{
  Reserved    = 0
  Other       = 1
  Unknown     = 2
  Available   = 3
  In_use      = 4
}

Examples

Use $CurrentUsage_map in a calculated property for Select-Object
<# 
  this example uses a hashtable to translate raw numeric values for 
  property "CurrentUsage" to friendly text

  Note: to use other properties than "CurrentUsage", look up the appropriate 
  translation hashtable for the property you would like to use instead.
#>

#region define hashtable to translate raw values to friendly text

# Please note: this hashtable is specific for property "CurrentUsage" 
# to translate other properties, use their translation table instead
$CurrentUsage_map = @{
      0 = 'Reserved'
      1 = 'Other'
      2 = 'Unknown'
      3 = 'Available'
      4 = 'In use'
}

#endregion define hashtable

#region define calculated property (to be used with Select-Object)

<#
  a calculated property is defined by a hashtable with keys "Name" and "Expression"
  "Name" defines the name of the property (in this example, it is "CurrentUsage", but you can rename it to anything else)
  "Expression" defines a scriptblock that calculates the content of this property
  in this example, the scriptblock uses the hashtable defined earlier to translate each numeric
  value to its friendly text counterpart:
#>
 
$CurrentUsage = @{
  Name = 'CurrentUsage'
  Expression = {
    # property is an array, so process all values
    $value = $_.CurrentUsage
    $CurrentUsage_map[[int]$value]
  }  
}
#endregion define calculated property

# retrieve the instances, and output the properties "Caption" and "CurrentUsage". The latter
# is defined by the hashtable in $CurrentUsage: 
Get-CimInstance -Class Win32_SystemSlot | Select-Object -Property Caption, $CurrentUsage

# ...or dump content of property CurrentUsage:
$friendlyValues = Get-CimInstance -Class Win32_SystemSlot | 
    Select-Object -Property $CurrentUsage |
    Select-Object -ExpandProperty CurrentUsage

# output values
$friendlyValues

# output values as comma separated list
$friendlyValues -join ', '

# output values as bullet list
$friendlyValues | ForEach-Object { "- $_" }
Use $CurrentUsage_map to directly translate raw values from an instance
<# 
  this example uses a hashtable to manually translate raw numeric values 
  for property "Win32_SystemSlot" to friendly text. This approach is ideal when
  there is just one instance to work with.

  Note: to use other properties than "Win32_SystemSlot", look up the appropriate 
  translation hashtable for the property you would like to use instead.
#>

#region define hashtable to translate raw values to friendly text

# Please note: this hashtable is specific for property "Win32_SystemSlot" 
# to translate other properties, use their translation table instead
$CurrentUsage_map = @{
      0 = 'Reserved'
      1 = 'Other'
      2 = 'Unknown'
      3 = 'Available'
      4 = 'In use'
}

#endregion define hashtable

# get one instance:
$instance = Get-CimInstance -Class Win32_SystemSlot | Select-Object -First 1

<#
  IMPORTANT: this example processes only one instance to illustrate
  the number-to-text translation. To process all instances, replace
  "Select-Object -First 1" with a "Foreach-Object" loop, and use
  the iterator variable $_ instead of $instance
#>

# query the property
$rawValue = $instance.CurrentUsage  

# translate raw value to friendly text:
$friendlyName = $CurrentUsage_map[[int]$rawValue]

# output value
$friendlyName
Use a switch statement inside a calculated property for Select-Object
<# 
  this example uses a switch clause to translate raw numeric 
  values for property "CurrentUsage" to friendly text. The switch
  clause is embedded into a calculated property so there is
  no need to refer to external variables for translation.

  Note: to use other properties than "CurrentUsage", look up the appropriate 
  translation switch clause for the property you would like to use instead.
#>

#region define calculated property (to be used with Select-Object)

<#
  a calculated property is defined by a hashtable with keys "Name" and "Expression"
  "Name" defines the name of the property (in this example, it is "CurrentUsage", but you can rename it to anything else)
  "Expression" defines a scriptblock that calculates the content of this property
  in this example, the scriptblock uses the hashtable defined earlier to translate each numeric
  value to its friendly text counterpart:
#>
 
$CurrentUsage = @{
  Name = 'CurrentUsage'
  Expression = {
    # property is an array, so process all values
    $value = $_.CurrentUsage
    
    switch([int]$value)
      {
        0          {'Reserved'}
        1          {'Other'}
        2          {'Unknown'}
        3          {'Available'}
        4          {'In use'}
        default    {"$value"}
      }
      
  }  
}
#endregion define calculated property

# retrieve all instances...
Get-CimInstance -ClassName Win32_SystemSlot | 
  # ...and output properties "Caption" and "CurrentUsage". The latter is defined
  # by the hashtable in $CurrentUsage:
  Select-Object -Property Caption, $CurrentUsage
Use the Enum from above to auto-translate the code values
<# 
  this example translates raw values by means of type conversion
  the friendly names are defined as enumeration using the
  keyword "enum" (PowerShell 5 or better)
  
  The raw value(s) are translated to friendly text by 
  simply converting them into the enum type.
  
  Note: to use other properties than "Win32_SystemSlot", look up the appropriate 
  enum definition for the property you would like to use instead.
#>


#region define enum with value-to-text translation:
Enum EnumCurrentUsage
{
  Reserved    = 0
  Other       = 1
  Unknown     = 2
  Available   = 3
  In_use      = 4
}

#endregion define enum

# get one instance:
$instance = Get-CimInstance -Class Win32_SystemSlot | Select-Object -First 1

<#
  IMPORTANT: this example processes only one instance to focus on
  the number-to-text type conversion. 
  
  To process all instances, replace   "Select-Object -First 1" 
  with a "Foreach-Object" loop, and use the iterator variable 
  $_ instead of $instance
#>

# query the property:
$rawValue = $instance.CurrentUsage

#region using strict type conversion

<#
  Note: strict type conversion fails if the raw value is 
  not defined by the enum. So if the list of allowable values
  was extended and the enum does not match the value,
  an exception is thrown
#>

# convert the property to the enum **CurrentUsage** 
[EnumCurrentUsage]$rawValue 

# get a comma-separated string:
[EnumCurrentUsage]$rawValue -join ',' 
#endregion

#region using operator "-as"

<#
  Note: the operator "-as" accepts values not defined
  by the enum and returns $null instead of throwing
  an exception
#>

$rawValue -as [EnumCurrentUsage]
#endregion

Enums must cover all possible values. If CurrentUsage returns a value that is not defined in the enum, an exception occurs. The exception reports the value that was missing in the enum. To fix, add the missing value to the enum.

Description

STRING

Description of the object.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, Description

DeviceNumber

UINT32

SMBIOS Device Number.

This value comes from the Device/Function Number member of the System Slots structure in the SMBIOS information.

Windows Server® 2012® R2, Windows® 8.1, Windows Server® 2012, Windows® 8, Windows Server® 2008® R2, Windows® 7, Windows Server® 2008 and Windows® Vista: This property is not supported before Windows® 10 and Windows Server® 2016.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, DeviceNumber

FunctionNumber

UINT32

SMBIOS Function Number.

This value comes from the Device/Function Number member of the System Slots structure in the SMBIOS information.

Windows Server® 2012® R2, Windows® 8.1, Windows Server® 2012, Windows® 8, Windows Server® 2008® R2, Windows® 7, Windows Server® 2008 and Windows® Vista: This property is not supported before Windows® 10 and Windows Server® 2016.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, FunctionNumber

HeightAllowed

REAL32 “INCHES”

Maximum height of an adapter card that can be inserted into the slot—in inches.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, HeightAllowed

InstallDate

DATETIME

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

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, InstallDate

LengthAllowed

REAL32 “INCHES”

Maximum length of an adapter card that can be inserted into the slot—in inches.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, LengthAllowed

Manufacturer

STRING MAX 256 CHAR

Name of the organization that produces the physical element.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, Manufacturer

MaxDataWidth

UINT16 “BITS”

Maximum bus width of adapter cards that can be inserted into this slot—in bits. This can be one of the following values.

This value comes from the Slot Data Bus Width member of the System Slots structure in the SMBIOS information.

MaxDataWidth returns a numeric value. To translate it into a meaningful text, use any of the following approaches:

Use a PowerShell Hashtable
$MaxDataWidth_map = @{
      0 = '8'
      1 = '16'
      2 = '32'
      3 = '64'
      4 = '128'
}
Use a switch statement
switch([int]$value)
{
  0          {'8'}
  1          {'16'}
  2          {'32'}
  3          {'64'}
  4          {'128'}
  default    {"$value"}
}
Use Enum structure
Enum EnumMaxDataWidth
{
  _8     = 0
  _16    = 1
  _32    = 2
  _64    = 3
  _128   = 4
}

Examples

Use $MaxDataWidth_map in a calculated property for Select-Object
<# 
  this example uses a hashtable to translate raw numeric values for 
  property "MaxDataWidth" to friendly text

  Note: to use other properties than "MaxDataWidth", look up the appropriate 
  translation hashtable for the property you would like to use instead.
#>

#region define hashtable to translate raw values to friendly text

# Please note: this hashtable is specific for property "MaxDataWidth" 
# to translate other properties, use their translation table instead
$MaxDataWidth_map = @{
      0 = '8'
      1 = '16'
      2 = '32'
      3 = '64'
      4 = '128'
}

#endregion define hashtable

#region define calculated property (to be used with Select-Object)

<#
  a calculated property is defined by a hashtable with keys "Name" and "Expression"
  "Name" defines the name of the property (in this example, it is "MaxDataWidth", but you can rename it to anything else)
  "Expression" defines a scriptblock that calculates the content of this property
  in this example, the scriptblock uses the hashtable defined earlier to translate each numeric
  value to its friendly text counterpart:
#>
 
$MaxDataWidth = @{
  Name = 'MaxDataWidth'
  Expression = {
    # property is an array, so process all values
    $value = $_.MaxDataWidth
    $MaxDataWidth_map[[int]$value]
  }  
}
#endregion define calculated property

# retrieve the instances, and output the properties "Caption" and "MaxDataWidth". The latter
# is defined by the hashtable in $MaxDataWidth: 
Get-CimInstance -Class Win32_SystemSlot | Select-Object -Property Caption, $MaxDataWidth

# ...or dump content of property MaxDataWidth:
$friendlyValues = Get-CimInstance -Class Win32_SystemSlot | 
    Select-Object -Property $MaxDataWidth |
    Select-Object -ExpandProperty MaxDataWidth

# output values
$friendlyValues

# output values as comma separated list
$friendlyValues -join ', '

# output values as bullet list
$friendlyValues | ForEach-Object { "- $_" }
Use $MaxDataWidth_map to directly translate raw values from an instance
<# 
  this example uses a hashtable to manually translate raw numeric values 
  for property "Win32_SystemSlot" to friendly text. This approach is ideal when
  there is just one instance to work with.

  Note: to use other properties than "Win32_SystemSlot", look up the appropriate 
  translation hashtable for the property you would like to use instead.
#>

#region define hashtable to translate raw values to friendly text

# Please note: this hashtable is specific for property "Win32_SystemSlot" 
# to translate other properties, use their translation table instead
$MaxDataWidth_map = @{
      0 = '8'
      1 = '16'
      2 = '32'
      3 = '64'
      4 = '128'
}

#endregion define hashtable

# get one instance:
$instance = Get-CimInstance -Class Win32_SystemSlot | Select-Object -First 1

<#
  IMPORTANT: this example processes only one instance to illustrate
  the number-to-text translation. To process all instances, replace
  "Select-Object -First 1" with a "Foreach-Object" loop, and use
  the iterator variable $_ instead of $instance
#>

# query the property
$rawValue = $instance.MaxDataWidth  

# translate raw value to friendly text:
$friendlyName = $MaxDataWidth_map[[int]$rawValue]

# output value
$friendlyName
Use a switch statement inside a calculated property for Select-Object
<# 
  this example uses a switch clause to translate raw numeric 
  values for property "MaxDataWidth" to friendly text. The switch
  clause is embedded into a calculated property so there is
  no need to refer to external variables for translation.

  Note: to use other properties than "MaxDataWidth", look up the appropriate 
  translation switch clause for the property you would like to use instead.
#>

#region define calculated property (to be used with Select-Object)

<#
  a calculated property is defined by a hashtable with keys "Name" and "Expression"
  "Name" defines the name of the property (in this example, it is "MaxDataWidth", but you can rename it to anything else)
  "Expression" defines a scriptblock that calculates the content of this property
  in this example, the scriptblock uses the hashtable defined earlier to translate each numeric
  value to its friendly text counterpart:
#>
 
$MaxDataWidth = @{
  Name = 'MaxDataWidth'
  Expression = {
    # property is an array, so process all values
    $value = $_.MaxDataWidth
    
    switch([int]$value)
      {
        0          {'8'}
        1          {'16'}
        2          {'32'}
        3          {'64'}
        4          {'128'}
        default    {"$value"}
      }
      
  }  
}
#endregion define calculated property

# retrieve all instances...
Get-CimInstance -ClassName Win32_SystemSlot | 
  # ...and output properties "Caption" and "MaxDataWidth". The latter is defined
  # by the hashtable in $MaxDataWidth:
  Select-Object -Property Caption, $MaxDataWidth
Use the Enum from above to auto-translate the code values
<# 
  this example translates raw values by means of type conversion
  the friendly names are defined as enumeration using the
  keyword "enum" (PowerShell 5 or better)
  
  The raw value(s) are translated to friendly text by 
  simply converting them into the enum type.
  
  Note: to use other properties than "Win32_SystemSlot", look up the appropriate 
  enum definition for the property you would like to use instead.
#>


#region define enum with value-to-text translation:
Enum EnumMaxDataWidth
{
  _8     = 0
  _16    = 1
  _32    = 2
  _64    = 3
  _128   = 4
}

#endregion define enum

# get one instance:
$instance = Get-CimInstance -Class Win32_SystemSlot | Select-Object -First 1

<#
  IMPORTANT: this example processes only one instance to focus on
  the number-to-text type conversion. 
  
  To process all instances, replace   "Select-Object -First 1" 
  with a "Foreach-Object" loop, and use the iterator variable 
  $_ instead of $instance
#>

# query the property:
$rawValue = $instance.MaxDataWidth

#region using strict type conversion

<#
  Note: strict type conversion fails if the raw value is 
  not defined by the enum. So if the list of allowable values
  was extended and the enum does not match the value,
  an exception is thrown
#>

# convert the property to the enum **MaxDataWidth** 
[EnumMaxDataWidth]$rawValue 

# get a comma-separated string:
[EnumMaxDataWidth]$rawValue -join ',' 
#endregion

#region using operator "-as"

<#
  Note: the operator "-as" accepts values not defined
  by the enum and returns $null instead of throwing
  an exception
#>

$rawValue -as [EnumMaxDataWidth]
#endregion

Enums must cover all possible values. If MaxDataWidth returns a value that is not defined in the enum, an exception occurs. The exception reports the value that was missing in the enum. To fix, add the missing value to the enum.

Model

STRING MAX 64 CHAR

Name for the physical element.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, Model

Name

STRING

Label for the object. When subclassed, this property can be overridden to be a key property.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, Name

Number

UINT16

Physical slot number that can be used as an index into a system slot table, whether or not that slot is physically empty.

This value comes from the Slot ID member of the System Slots structure in the SMBIOS information.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, Number

OtherIdentifyingInfo

STRING

Additional data (that is, more than the asset tag information), that can be used to identify a physical element. One example is bar code data associated with an element that also has an asset tag. Note that if only bar code data is available, and it is unique or can be used as an element key, this property is NULL, and the bar code data is used as the class key in the Tag property.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, OtherIdentifyingInfo

PartNumber

STRING MAX 256 CHAR

Part number that the producer or manufacturer assigns to the physical element.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, PartNumber

PMESignal

BOOLEAN

If TRUE, the PCI bus Power Management Enabled (PME) signal is supported by this slot.

This value comes from the Slot Characteristics 2 member of the System Slots structure in the SMBIOS information.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, PMESignal

PoweredOn

BOOLEAN

If TRUE, the physical element is powered on.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, PoweredOn

PurposeDescription

STRING

Free-form string that describes how this slot is physically unique and may hold special types of hardware. This property only has meaning when the corresponding property SpecialPurpose is TRUE.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, PurposeDescription

SegmentGroupNumber

UINT32

SMBIOS Segment Group Number.

This value comes from the Segment Group Number member of the System Slots structure in the SMBIOS information.

Windows Server® 2012® R2, Windows® 8.1, Windows Server® 2012, Windows® 8, Windows Server® 2008® R2, Windows® 7, Windows Server® 2008 and Windows® Vista: This property is not supported before Windows® 10 and Windows Server® 2016.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, SegmentGroupNumber

SerialNumber

STRING MAX 64 CHAR

Manufacturer-allocated number used to identify the physical element.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, SerialNumber

Shared

BOOLEAN

If TRUE, two or more slots share a location on the baseboard, such as a PCI/EISA shared slot.

This value comes from the Slot Characteristics 1 member of the System Slots structure in the SMBIOS information.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, Shared

SKU

STRING MAX 64 CHAR

Stockkeeping unit number for the physical element.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, SKU

SlotDesignation

STRING

SMBIOS string that identifies the system slot designation of the slot on the motherboard.

Example: “PCI-1”

This value comes from the Slot Designation member of the System Slots structure in the SMBIOS information.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, SlotDesignation

SpecialPurpose

BOOLEAN

If TRUE, this slot is physically unique and may hold special types of hardware, such as a graphics processor slot. If TRUE, then PurposeDescription should specify the nature of the uniqueness or purpose of the slot.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, SpecialPurpose

Status

STRING MAX 10 CHAR

Current status of an object. Various operational and nonoperational statuses can be defined. Available values:

$values = 'Degraded','Error','Lost Comm','No Contact','NonRecover','OK','Pred Fail','Service','Starting','Stopping','Stressed','Unknown'
Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, Status

SupportsHotPlug

BOOLEAN

If TRUE, the slot supports hot-plugging of adapter cards.

This value comes from the Slot Characteristics 2 member of the System Slots structure in the SMBIOS information.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, SupportsHotPlug

Tag

KEY PROPERTY STRING MAX 256 CHAR

System slot represented by an instance of this class.

Example: “System Slot 1”

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag

ThermalRating

UINT32 “MILLIWATTS”

Maximum thermal dissipation of the slot in milliwatts.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, ThermalRating

VccMixedVoltageSupport

UINT16 ARRAY

Array of enumerated integers indicating the Vcc voltage supported by this slot.

This value comes from the Slot Characteristics 1 member of the System Slots structure in the SMBIOS information.

VccMixedVoltageSupport returns a numeric value. To translate it into a meaningful text, use any of the following approaches:

Use a PowerShell Hashtable
$VccMixedVoltageSupport_map = @{
      0 = 'Unknown'
      1 = 'Other'
      2 = '3.3V'
      3 = '5V'
}
Use a switch statement
switch([int]$value)
{
  0          {'Unknown'}
  1          {'Other'}
  2          {'3.3V'}
  3          {'5V'}
  default    {"$value"}
}
Use Enum structure
Enum EnumVccMixedVoltageSupport
{
  Unknown   = 0
  Other     = 1
  _33V      = 2
  _5V       = 3
}

Examples

Use $VccMixedVoltageSupport_map in a calculated property for Select-Object
<# 
  this example uses a hashtable to translate raw numeric values for 
  property "VccMixedVoltageSupport" to friendly text

  Note: to use other properties than "VccMixedVoltageSupport", look up the appropriate 
  translation hashtable for the property you would like to use instead.
#>

#region define hashtable to translate raw values to friendly text

# Please note: this hashtable is specific for property "VccMixedVoltageSupport" 
# to translate other properties, use their translation table instead
$VccMixedVoltageSupport_map = @{
      0 = 'Unknown'
      1 = 'Other'
      2 = '3.3V'
      3 = '5V'
}

#endregion define hashtable

#region define calculated property (to be used with Select-Object)

<#
  a calculated property is defined by a hashtable with keys "Name" and "Expression"
  "Name" defines the name of the property (in this example, it is "VccMixedVoltageSupport", but you can rename it to anything else)
  "Expression" defines a scriptblock that calculates the content of this property
  in this example, the scriptblock uses the hashtable defined earlier to translate each numeric
  value to its friendly text counterpart:
#>
 
$VccMixedVoltageSupport = @{
  Name = 'VccMixedVoltageSupport'
  Expression = {
    # property is an array, so process all values
    $result = foreach($value in $_.VccMixedVoltageSupport)
    {
        # important: convert original value to [int] because
        # hashtable keys are type-aware:
        $VccMixedVoltageSupport_map[[int]$value]
    }
    # uncomment to get a comma-separated string instead
    # of a string array:
    $result <#-join ', '#>
  }  
}
#endregion define calculated property

# retrieve the instances, and output the properties "Caption" and "VccMixedVoltageSupport". The latter
# is defined by the hashtable in $VccMixedVoltageSupport: 
Get-CimInstance -Class Win32_SystemSlot | Select-Object -Property Caption, $VccMixedVoltageSupport

# ...or dump content of property VccMixedVoltageSupport:
$friendlyValues = Get-CimInstance -Class Win32_SystemSlot | 
    Select-Object -Property $VccMixedVoltageSupport |
    Select-Object -ExpandProperty VccMixedVoltageSupport

# output values
$friendlyValues

# output values as comma separated list
$friendlyValues -join ', '

# output values as bullet list
$friendlyValues | ForEach-Object { "- $_" }
Use $VccMixedVoltageSupport_map to directly translate raw values from an instance
<# 
  this example uses a hashtable to manually translate raw numeric values 
  for property "Win32_SystemSlot" to friendly text. This approach is ideal when there
  is just one instance to work with.

  Note: to use other properties than "Win32_SystemSlot", look up the appropriate 
  translation hashtable for the property you would like to use instead.
#>

#region define hashtable to translate raw values to friendly text

# Please note: this hashtable is specific for property "Win32_SystemSlot" 
# to translate other properties, use their translation table instead
$VccMixedVoltageSupport_map = @{
      0 = 'Unknown'
      1 = 'Other'
      2 = '3.3V'
      3 = '5V'
}

#endregion define hashtable

# get one instance:
$instance = Get-CimInstance -Class Win32_SystemSlot | Select-Object -First 1

<#
  IMPORTANT: this example processes only one instance to illustrate
  the number-to-text translation. To process all instances, replace
  "Select-Object -First 1" with a "Foreach-Object" loop, and use
  the iterator variable $_ instead of $instance
#>

# query the property (hint: the property is an array!)
$rawValues = $instance.VccMixedVoltageSupport  

# translate all raw values into friendly names:
$friendlyNames = foreach($rawValue in $rawValues)
{ $VccMixedVoltageSupport_map[[int]$rawValue] }

# output values
$friendlyValues

# output values as comma separated list
$friendlyValues -join ', '

# output values as bullet list
$friendlyValues | ForEach-Object { "- $_" }
Use a switch statement inside a calculated property for Select-Object
<# 
  this example uses a switch clause to translate raw numeric 
  values for property "VccMixedVoltageSupport" to friendly text. The switch
  clause is embedded into a calculated property so there is
  no need to refer to external variables for translation.

  Note: to use other properties than "VccMixedVoltageSupport", look up the appropriate 
  translation switch clause for the property you would like to use instead.
#>

#region define calculated property (to be used with Select-Object)

<#
  a calculated property is defined by a hashtable with keys "Name" and "Expression"
  "Name" defines the name of the property (in this example, it is "VccMixedVoltageSupport", but you can rename it to anything else)
  "Expression" defines a scriptblock that calculates the content of this property
  in this example, the scriptblock uses the hashtable defined earlier to translate each numeric
  value to its friendly text counterpart:
#>
 
$VccMixedVoltageSupport = @{
  Name = 'VccMixedVoltageSupport'
  Expression = {
    # property is an array, so process all values
    $result = foreach($value in $_.VccMixedVoltageSupport)
    {
        switch([int]$value)
      {
        0          {'Unknown'}
        1          {'Other'}
        2          {'3.3V'}
        3          {'5V'}
        default    {"$value"}
      }
      
    }
    $result
  }  
}
#endregion define calculated property

# retrieve all instances...
Get-CimInstance -ClassName Win32_SystemSlot | 
  # ...and output properties "Caption" and "VccMixedVoltageSupport". The latter is defined
  # by the hashtable in $VccMixedVoltageSupport:
  Select-Object -Property Caption, $VccMixedVoltageSupport
Use the Enum from above to auto-translate the code values
<# 
  this example translates raw values by means of type conversion
  the friendly names are defined as enumeration using the
  keyword "enum" (PowerShell 5 or better)
  
  The raw value(s) are translated to friendly text by 
  simply converting them into the enum type.
  
  Note: to use other properties than "Win32_SystemSlot", look up the appropriate 
  enum definition for the property you would like to use instead.
#>


#region define enum with value-to-text translation:
Enum EnumVccMixedVoltageSupport
{
  Unknown   = 0
  Other     = 1
  _33V      = 2
  _5V       = 3
}

#endregion define enum

# get one instance:
$instance = Get-CimInstance -Class Win32_SystemSlot | Select-Object -First 1

<#
  IMPORTANT: this example processes only one instance to focus on
  the number-to-text type conversion. 
  
  To process all instances, replace   "Select-Object -First 1" 
  with a "Foreach-Object" loop, and use the iterator variable 
  $_ instead of $instance
#>

# query the property:
$rawValue = $instance.VccMixedVoltageSupport

#region using strict type conversion

<#
  Note: strict type conversion fails if the raw value is 
  not defined by the enum. So if the list of allowable values
  was extended and the enum does not match the value,
  an exception is thrown
#>

# convert the property to the enum **VccMixedVoltageSupport** 
[EnumVccMixedVoltageSupport[]]$rawValue 

# get a comma-separated string:
[EnumVccMixedVoltageSupport[]]$rawValue -join ',' 
#endregion

#region using operator "-as"

<#
  Note: the operator "-as" accepts values not defined
  by the enum and returns $null instead of throwing
  an exception
#>

$rawValue -as [EnumVccMixedVoltageSupport[]]
#endregion

Enums must cover all possible values. If VccMixedVoltageSupport returns a value that is not defined in the enum, an exception occurs. The exception reports the value that was missing in the enum. To fix, add the missing value to the enum.

Version

STRING MAX 64 CHAR

Version of the physical element.

Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property Tag, Version

VppMixedVoltageSupport

UINT16 ARRAY

Array of enumerated integers indicating the Vpp voltage supported by this slot.

VppMixedVoltageSupport returns a numeric value. To translate it into a meaningful text, use any of the following approaches:

Use a PowerShell Hashtable
$VppMixedVoltageSupport_map = @{
      0 = 'Unknown'
      1 = 'Other'
      2 = '3.3V'
      3 = '5V'
      4 = '12V'
}
Use a switch statement
switch([int]$value)
{
  0          {'Unknown'}
  1          {'Other'}
  2          {'3.3V'}
  3          {'5V'}
  4          {'12V'}
  default    {"$value"}
}
Use Enum structure
Enum EnumVppMixedVoltageSupport
{
  Unknown   = 0
  Other     = 1
  _33V      = 2
  _5V       = 3
  _12V      = 4
}

Examples

Use $VppMixedVoltageSupport_map in a calculated property for Select-Object
<# 
  this example uses a hashtable to translate raw numeric values for 
  property "VppMixedVoltageSupport" to friendly text

  Note: to use other properties than "VppMixedVoltageSupport", look up the appropriate 
  translation hashtable for the property you would like to use instead.
#>

#region define hashtable to translate raw values to friendly text

# Please note: this hashtable is specific for property "VppMixedVoltageSupport" 
# to translate other properties, use their translation table instead
$VppMixedVoltageSupport_map = @{
      0 = 'Unknown'
      1 = 'Other'
      2 = '3.3V'
      3 = '5V'
      4 = '12V'
}

#endregion define hashtable

#region define calculated property (to be used with Select-Object)

<#
  a calculated property is defined by a hashtable with keys "Name" and "Expression"
  "Name" defines the name of the property (in this example, it is "VppMixedVoltageSupport", but you can rename it to anything else)
  "Expression" defines a scriptblock that calculates the content of this property
  in this example, the scriptblock uses the hashtable defined earlier to translate each numeric
  value to its friendly text counterpart:
#>
 
$VppMixedVoltageSupport = @{
  Name = 'VppMixedVoltageSupport'
  Expression = {
    # property is an array, so process all values
    $result = foreach($value in $_.VppMixedVoltageSupport)
    {
        # important: convert original value to [int] because
        # hashtable keys are type-aware:
        $VppMixedVoltageSupport_map[[int]$value]
    }
    # uncomment to get a comma-separated string instead
    # of a string array:
    $result <#-join ', '#>
  }  
}
#endregion define calculated property

# retrieve the instances, and output the properties "Caption" and "VppMixedVoltageSupport". The latter
# is defined by the hashtable in $VppMixedVoltageSupport: 
Get-CimInstance -Class Win32_SystemSlot | Select-Object -Property Caption, $VppMixedVoltageSupport

# ...or dump content of property VppMixedVoltageSupport:
$friendlyValues = Get-CimInstance -Class Win32_SystemSlot | 
    Select-Object -Property $VppMixedVoltageSupport |
    Select-Object -ExpandProperty VppMixedVoltageSupport

# output values
$friendlyValues

# output values as comma separated list
$friendlyValues -join ', '

# output values as bullet list
$friendlyValues | ForEach-Object { "- $_" }
Use $VppMixedVoltageSupport_map to directly translate raw values from an instance
<# 
  this example uses a hashtable to manually translate raw numeric values 
  for property "Win32_SystemSlot" to friendly text. This approach is ideal when there
  is just one instance to work with.

  Note: to use other properties than "Win32_SystemSlot", look up the appropriate 
  translation hashtable for the property you would like to use instead.
#>

#region define hashtable to translate raw values to friendly text

# Please note: this hashtable is specific for property "Win32_SystemSlot" 
# to translate other properties, use their translation table instead
$VppMixedVoltageSupport_map = @{
      0 = 'Unknown'
      1 = 'Other'
      2 = '3.3V'
      3 = '5V'
      4 = '12V'
}

#endregion define hashtable

# get one instance:
$instance = Get-CimInstance -Class Win32_SystemSlot | Select-Object -First 1

<#
  IMPORTANT: this example processes only one instance to illustrate
  the number-to-text translation. To process all instances, replace
  "Select-Object -First 1" with a "Foreach-Object" loop, and use
  the iterator variable $_ instead of $instance
#>

# query the property (hint: the property is an array!)
$rawValues = $instance.VppMixedVoltageSupport  

# translate all raw values into friendly names:
$friendlyNames = foreach($rawValue in $rawValues)
{ $VppMixedVoltageSupport_map[[int]$rawValue] }

# output values
$friendlyValues

# output values as comma separated list
$friendlyValues -join ', '

# output values as bullet list
$friendlyValues | ForEach-Object { "- $_" }
Use a switch statement inside a calculated property for Select-Object
<# 
  this example uses a switch clause to translate raw numeric 
  values for property "VppMixedVoltageSupport" to friendly text. The switch
  clause is embedded into a calculated property so there is
  no need to refer to external variables for translation.

  Note: to use other properties than "VppMixedVoltageSupport", look up the appropriate 
  translation switch clause for the property you would like to use instead.
#>

#region define calculated property (to be used with Select-Object)

<#
  a calculated property is defined by a hashtable with keys "Name" and "Expression"
  "Name" defines the name of the property (in this example, it is "VppMixedVoltageSupport", but you can rename it to anything else)
  "Expression" defines a scriptblock that calculates the content of this property
  in this example, the scriptblock uses the hashtable defined earlier to translate each numeric
  value to its friendly text counterpart:
#>
 
$VppMixedVoltageSupport = @{
  Name = 'VppMixedVoltageSupport'
  Expression = {
    # property is an array, so process all values
    $result = foreach($value in $_.VppMixedVoltageSupport)
    {
        switch([int]$value)
      {
        0          {'Unknown'}
        1          {'Other'}
        2          {'3.3V'}
        3          {'5V'}
        4          {'12V'}
        default    {"$value"}
      }
      
    }
    $result
  }  
}
#endregion define calculated property

# retrieve all instances...
Get-CimInstance -ClassName Win32_SystemSlot | 
  # ...and output properties "Caption" and "VppMixedVoltageSupport". The latter is defined
  # by the hashtable in $VppMixedVoltageSupport:
  Select-Object -Property Caption, $VppMixedVoltageSupport
Use the Enum from above to auto-translate the code values
<# 
  this example translates raw values by means of type conversion
  the friendly names are defined as enumeration using the
  keyword "enum" (PowerShell 5 or better)
  
  The raw value(s) are translated to friendly text by 
  simply converting them into the enum type.
  
  Note: to use other properties than "Win32_SystemSlot", look up the appropriate 
  enum definition for the property you would like to use instead.
#>


#region define enum with value-to-text translation:
Enum EnumVppMixedVoltageSupport
{
  Unknown   = 0
  Other     = 1
  _33V      = 2
  _5V       = 3
  _12V      = 4
}

#endregion define enum

# get one instance:
$instance = Get-CimInstance -Class Win32_SystemSlot | Select-Object -First 1

<#
  IMPORTANT: this example processes only one instance to focus on
  the number-to-text type conversion. 
  
  To process all instances, replace   "Select-Object -First 1" 
  with a "Foreach-Object" loop, and use the iterator variable 
  $_ instead of $instance
#>

# query the property:
$rawValue = $instance.VppMixedVoltageSupport

#region using strict type conversion

<#
  Note: strict type conversion fails if the raw value is 
  not defined by the enum. So if the list of allowable values
  was extended and the enum does not match the value,
  an exception is thrown
#>

# convert the property to the enum **VppMixedVoltageSupport** 
[EnumVppMixedVoltageSupport[]]$rawValue 

# get a comma-separated string:
[EnumVppMixedVoltageSupport[]]$rawValue -join ',' 
#endregion

#region using operator "-as"

<#
  Note: the operator "-as" accepts values not defined
  by the enum and returns $null instead of throwing
  an exception
#>

$rawValue -as [EnumVppMixedVoltageSupport[]]
#endregion

Enums must cover all possible values. If VppMixedVoltageSupport returns a value that is not defined in the enum, an exception occurs. The exception reports the value that was missing in the enum. To fix, add the missing value to the enum.

Examples

List all instances of Win32_SystemSlot
Get-CimInstance -ClassName Win32_SystemSlot

Learn more about Get-CimInstance and the deprecated Get-WmiObject.

View all properties
Get-CimInstance -ClassName Win32_SystemSlot -Property *
View key properties only
Get-CimInstance -ClassName Win32_SystemSlot -KeyOnly

Selecting Properties

To select only some properties, pipe the results to Select-Object -Property a,b,c with a comma-separated list of the properties you require. Wildcards are permitted.

Get-CimInstance always returns all properties but only retrieves the ones that you specify. All other properties are empty but still present. That’s why you need to pipe the results into Select-Object if you want to limit the visible properties, i.e. for reporting.

Selecting Properties

The code below lists all available properties. Remove the ones you do not need:

$properties = 'BusNumber',
              'Caption',
              'ConnectorPinout',
              'ConnectorType',
              'CreationClassName',
              'CurrentUsage',
              'Description',
              'DeviceNumber',
              'FunctionNumber',
              'HeightAllowed',
              'InstallDate',
              'LengthAllowed',
              'Manufacturer',
              'MaxDataWidth',
              'Model',
              'Name',
              'Number',
              'OtherIdentifyingInfo',
              'PartNumber',
              'PMESignal',
              'PoweredOn',
              'PurposeDescription',
              'SegmentGroupNumber',
              'SerialNumber',
              'Shared',
              'SKU',
              'SlotDesignation',
              'SpecialPurpose',
              'Status',
              'SupportsHotPlug',
              'Tag',
              'ThermalRating',
              'VccMixedVoltageSupport',
              'Version',
              'VppMixedVoltageSupport'
Get-CimInstance -ClassName Win32_SystemSlot | Select-Object -Property $properties
Limiting Network Bandwidth

If you work remotely, it makes sense to limit network bandwidth by filtering the properties on the server side, too:

Get-CimInstance -Class Win32_SystemSlot -Property $property | 
Select-Object -Property $property

Selecting Instances

To select some instances, use Get-CimInstance and a WMI Query. The wildcard character in WMI Queries is % (and not “*”).

The parameter -Filter runs a simple query.

Listing all instances where the property Caption starts with “A”
Get-CimInstance -Class Win32_SystemSlot -Filter 'Caption LIKE "a%"' 
Using a WQL Query

The parameter -Query uses a query similar to SQL and combines the parameters -Filter and -Property. This returns all instances where the property Caption starts with “A”, and returns the properties specified:

Get-CimInstance -Query "SELECT SKU, ConnectorType, LengthAllowed, Model FROM Win32_SystemSlot WHERE Caption LIKE 'a%'"

Any property you did not specify is still present but empty. You might need to use Select-Object to remove all unwanted properties:

Get-CimInstance -Query "SELECT SKU, ConnectorType, LengthAllowed, Model FROM Win32_SystemSlot WHERE Caption LIKE 'a%'" | Select-Object -Property SKU, ConnectorType, LengthAllowed, Model

Accessing Remote Computers

To access remote systems, you need to have proper permissions. User the parameter -ComputerName to access one or more remote systems.

Authenticating as Current User
# one or more computer names or IP addresses:
$list = 'server1', 'server2'

# authenticate with your current identity:
$result = Get-CimInstance -ClassName Win32_SystemSlot -ComputerName $list 
$result
Authenticating as Different User

Use a CIMSession object to authenticate with a new identity:

# one or more computer names or IP addresses:
$list = 'server1', 'server2'

# authenticate with a different identity:
$cred = Get-Credential -Message 'Authenticate to retrieve WMI information:'
$session = New-CimSession -ComputerName $list -Credential $cred

$result = Get-CimInstance Win32_SystemSlot -CimSession $session

# remove the session after use (if you do not plan to re-use it later)
Remove-CimSession -CimSession $session

$result

Learn more about accessing remote computers.

Requirements

To use Win32_SystemSlot, the following requirements apply:

PowerShell

Get-CimInstance was introduced with PowerShell Version 3.0, which in turn was introduced on clients with Windows 8 and on servers with Windows Server 2012.

If necessary, update Windows PowerShell to Windows PowerShell 5.1, or install PowerShell 7 side-by-side.

Operating System

Win32_SystemSlot was introduced on clients with Windows Vista and on servers with Windows Server 2008.

Namespace

Win32_SystemSlot lives in the Namespace Root/CIMV2. This is the default namespace. There is no need to use the -Namespace parameter in Get-CimInstance.

Implementation

Win32_SystemSlot is implemented in CIMWin32.dll and defined in CIMWin32.mof. Both files are located in the folder C:\Windows\system32\wbem:

explorer $env:windir\system32\wbem
notepad $env:windir\system32\wbem\CIMWin32.mof