Hey Y’all,
This one’s driving me a bit crazy. According to the MS documentation on the class Win32_SystemSlot the value of the property MaxDataWidth should be from 0-4.
MaxDataWidth Property uint16 MaxDataWidth {get;}
0 = 8 Bits
1 = 16 Bits
2 = 32 Bits
3 = 64 Bits
4 = 128 Bits
However I’m getting values 5-10? Ideas?
Here’s the PowerShell script snippet I’m working on.
$CurrUsage = @{ 0 = "Reserved" 1 = "Other" 2 = "Unknown" 3 = "Available" 4 = "In Use" } <#Note: Win32_SystemSlot returining values higher than 4! Link to System Documentation: https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/win32-systemslot PS> $x.maxdatawidth 10 5 5 7 5 7 #> $DataWidth = @{ 0 = 8 1 = 16 2 = 32 3 = 64 4 = 128 } $x = Get-CimInstance -ClassName Win32_SystemSlot -Namespace root/CIMV2 $fmtSlots = @{Expression={$_.SlotDesignation};Label="Slot`nDesignation";Width=11}, @{Expression={$CurrUsage[[Int]$_.CurrentUsage]};Label="Current`nUsage";Width=9}, @{Expression={$_.Shared};Label="`nShared";Width=6;Align="Right"}, @{Expression={$_.Status};Label="Status";Width=6}, @{Expression={$DataWidth[[Int]$_.MaxDataWidth]};Label="Max Data`nWidth";Width=8;Align="Left"} $x | Format-Table -Property $fmtSlots <# ------ Sample Output ----- Slot Current Status Max Data Designation Usage Shared Width ----------- --------- ------ ------ -------- SLOT1 In Use True OK SLOT2 In Use True OK SLOT3 In Use True OK SLOT4 In Use True OK M.2 WIFI In Use True OK M.2 SSD In Use True OK #>