Here is but a sample of my project device information data gathering to be able to identify disks during installation - so that you are able to clean install - with a fully populated system.
The notebook has all ports filled: PCIe, SATA USB, DVD, and USB via Thunderbolt
The reason why I post here is to provide information in relation to how device information can be retrieved - but also to show the inconsistency with device property matches between classes that should really reflect the same information when the property name matches.
We will start with the CMD.exe tools: DIskpart, FSUtil and WMIC, and finish with PowerShell
[HTML]DISKPART> DETAIL DISK
NVMe Samsung SSD 950 SCSI Disk Device
Disk ID: {499AE275-841C-421F-88A9-F1FFA5664C76}
Type : NVMe
Status : Online
Path : 0
Target : 0
LUN ID : 0
Location Path : PCIROOT(0)#PCI(1C04)#PCI(0000)#NVME(P00T00L00)
Current Read-only State : No
Read-only : No
Boot Disk : Yes
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 C NB-OS NTFS Partition 213 GB Healthy Boot
Volume 1 Recovery NTFS Partition 450 MB Healthy Hidden
Volume 2 FAT32 Partition 99 MB Healthy System
Volume 3 NTFS Partition 503 MB Healthy Hidden
-----------------------------------------------------------------------------------
Samsung SSD 850 PRO 512GB
Disk ID: {6EE1D2E1-45AB-492A-A7D1-5AAB3661482F}
Type : SATA
Status : Online
Path : 3
Target : 0
LUN ID : 0
Location Path : PCIROOT(0)#PCI(1F02)#ATA(C03T00L00)
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 4 E NB-EXT NTFS Partition 429 GB Healthy
----------------------------------------------------------------------------------
Kingston DT microDuo 3.0 USB Device
Disk ID: 0BBDC77A
Type : USB
Status : Online
Path : 0
Target : 0
LUN ID : 0
Location Path : UNAVAILABLE
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 5 I NB-ROG FAT32 Removable 14 GB Healthy[/HTML][HTML]wmic:root\cli>DISKDRIVE GET Index,PNPDeviceID,Manufacturer,Model,InterfaceType,SCSIBus
Index InterfaceType Manufacturer Model PNPDeviceID SCSIBus
0 SCSI (Standard disk drives) NVMe Samsung SSD 950 SCSI Disk Device SCSI\DISK&VEN_NVME&PROD_SAMSUNG_SSD_950\5&3B25DD7E&0&000000 0
1 IDE (Standard disk drives) Samsung SSD 850 PRO 512GB SCSI\DISK&VEN_SAMSUNG&PROD_SSD_850_PRO_512G\4&14E7E349&0&030000 3
2 USB (Standard disk drives) Kingston DT microDuo 3.0 USB Device USBSTOR\DISK&VEN_KINGSTON&PROD_DT_MICRODUO_3.0&REV_PMAP\94DE80724795BE5119B9159A&0 0
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
wmic:root\cli>IDECONTROLLER GET PNPDeviceID,Manufacturer,Name,ProtocolSupported,DeviceId
DeviceID Manufacturer Name PNPDeviceID ProtocolSupported
PCI\VEN_8086&DEV_8C03&SUBSYS_171D1043&REV_05\3&11583659&0&FA Intel Corporation Intel(R) 8 Series Chipset Family SATA AHCI Controller PCI\VEN_8086&DEV_8C03&SUBSYS_171D1043&REV_05\3&11583659&0&FA 37
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
wmic:root\cli>SCSICONTROLLER GET PNPDeviceID,Manufacturer,Name,ProtocolSupported,DeviceId
DeviceID Manufacturer Name PNPDeviceID ProtocolSupported
ROOT\SPACEPORT\0000 Microsoft Microsoft Storage Spaces Controller ROOT\SPACEPORT\0000 2
PCI\VEN_144D&DEV_A802&SUBSYS_A801144D&REV_01\4&17C5C7ED&0&00E4 Samsung Electronics Co., Ltd Samsung NVMe Controller PCI\VEN_144D&DEV_A802&SUBSYS_A801144D&REV_01\4&17C5C7ED&0&00E4 2
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
wmic:root\cli>LOGICALDISK GET DeviceID,Description,DriveType,MediaType,Name,PNPDeviceID
Description DeviceID DriveType MediaType Name PNPDeviceID
Local Fixed Disk C: 3 12 C:
Local Fixed Disk E: 3 12 E:
Removable Disk I: 2 I:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
wmic:root\cli>PARTITION GET Index,PNPDeviceID,DeviceID,DiskIndex,Name,Type,Description
Description DeviceID DiskIndex Index Name PNPDeviceID Type
GPT: Unknown Disk #0, Partition #0 0 0 Disk #0, Partition #0 GPT: Unknown
GPT: System Disk #0, Partition #1 0 1 Disk #0, Partition #1 GPT: System
GPT: Basic Data Disk #0, Partition #2 0 2 Disk #0, Partition #2 GPT: Basic Data
GPT: Unknown Disk #0, Partition #3 0 3 Disk #0, Partition #3 GPT: Unknown
GPT: Basic Data Disk #1, Partition #0 1 0 Disk #1, Partition #0 GPT: Basic Data
Unknown Disk #2, Partition #0 2 0 Disk #2, Partition #0 Unknown[/HTML][HTML]PS C:\WINDOWS\system32> Get-Disk | Format-List ; Get-Disk | Select -Property Number,Path,Manufacturer,Model,BusType
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
UniqueId : EUI.4a08165a51382500
Number : 0
Path : \\?\scsi#disk&ven_nvme&prod_samsung_ssd_950#5&3b25dd7e&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Manufacturer : NVMe
Model : Samsung SSD 950
SerialNumber : 0000_0000_0000_0000.
Size : 238.47 GB
AllocatedSize : 230453239808
LogicalSectorSize : 512
PhysicalSectorSize : 512
NumberOfPartitions : 5
PartitionStyle : GPT
IsReadOnly : False
IsSystem : True
IsBoot : True
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
UniqueId : 500253884016362E
Number : 1
Path : \\?\scsi#disk&ven_samsung&prod_ssd_850_pro_512g#4&14e7e349&0&030000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Manufacturer :
Model : Samsung SSD 850 PRO 512GB
SerialNumber : S250NXAH130901A
Size : 476.94 GB
AllocatedSize : 460898787328
LogicalSectorSize : 512
PhysicalSectorSize : 512
NumberOfPartitions : 2
PartitionStyle : GPT
IsReadOnly : False
IsSystem : False
IsBoot : False
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
UniqueId : USBSTOR\DISK&VEN_KINGSTON&PROD_DT_MICRODUO_3.0&REV_PMAP\94DE80724795BE5119B9159A&0:NB-G751JY
Number : 2
Path : \\?\usbstor#disk&ven_kingston&prod_dt_microduo_3.0&rev_pmap#94de80724795be5119b9159a&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Manufacturer : Kingston
Model : DT microDuo 3.0
SerialNumber : 9B4ED5E18109
Size : 14.65 GB
AllocatedSize : 15733161984
LogicalSectorSize : 512
PhysicalSectorSize : 512
NumberOfPartitions : 1
PartitionStyle : MBR
IsReadOnly : False
IsSystem : False
IsBoot : False
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Number : 0
Path : \\?\scsi#disk&ven_nvme&prod_samsung_ssd_950#5&3b25dd7e&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Manufacturer : NVMe
Model : Samsung SSD 950
BusType : NVMe
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Number : 1
Path : \\?\scsi#disk&ven_samsung&prod_ssd_850_pro_512g#4&14e7e349&0&030000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Manufacturer :
Model : Samsung SSD 850 PRO 512GB
BusType : SATA
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Number : 2
Path : \\?\usbstor#disk&ven_kingston&prod_dt_microduo_3.0&rev_pmap#94de80724795be5119b9159a&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Manufacturer : Kingston
Model : DT microDuo 3.0
BusType : USB[/HTML]The first thing to note is the differences when the PCIE NVME and SATA III SSD are in the correct settings for Disk Enumeration for inside Windows Operating System
[HTML]NVMe Samsung SSD 950 SCSI Disk Device
Disk ID: {499AE275-841C-421F-88A9-F1FFA5664C76}
Type : NVMe
Status : Online
Path : 0
Target : 0
LUN ID : 0
Location Path : PCIROOT(0)#PCI(1C04)#PCI(0000)#NVME(P00T00L00)
Current Read-only State : No
Read-only : No
Boot Disk : Yes
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 C NB-OS NTFS Partition 213 GB Healthy Boot
Volume 1 Recovery NTFS Partition 450 MB Healthy Hidden
Volume 2 FAT32 Partition 99 MB Healthy System
Volume 3 NTFS Partition 503 MB Healthy Hidden[/HTML]
[HTML]wmic:root\cli>PARTITION GET Index,PNPDeviceID,DeviceID,DiskIndex,Name,Type,Description
Description DeviceID DiskIndex Index Name PNPDeviceID Type
GPT: Unknown Disk #0, Partition #0 0 0 Disk #0, Partition #0 GPT: Unknown
GPT: System Disk #0, Partition #1 0 1 Disk #0, Partition #1 GPT: System
GPT: Basic Data Disk #0, Partition #2 0 2 Disk #0, Partition #2 GPT: Basic Data
GPT: Unknown Disk #0, Partition #3 0 3 Disk #0, Partition #3 GPT: Unknown
GPT: Basic Data Disk #1, Partition #0 1 0 Disk #1, Partition #0 GPT: Basic Data
Unknown Disk #2, Partition #0 2 0 Disk #2, Partition #0 Unknown[/HTML]
Compared to
[HTML]wmic:root\cli>DISKDRIVE GET Index,PNPDeviceID,Manufacturer,Model,InterfaceType,SCSIBus
Index InterfaceType Manufacturer Model PNPDeviceID SCSIBus
3 SCSI (Standard disk drives) NVMe Samsung SSD 950 SCSI Disk Device SCSI\DISK&VEN_NVME&PROD_SAMSUNG_SSD_950\5&3B25DD7E&0&000000 0
4 USB (Standard disk drives) WD My Passport 0820 USB Device USBSTOR\DISK&VEN_WD&PROD_MY_PASSPORT_0820&REV_1012\575838314132354B36323437&0 0
6 USB (Standard disk drives) SanDisk Ultra USB Device USBSTOR\DISK&VEN_SANDISK&PROD_ULTRA&REV_1.00\4C530001050917105511&0 0
5 USB (Standard disk drives) Kingston DT microDuo 3.0 USB Device USBSTOR\DISK&VEN_KINGSTON&PROD_DT_MICRODUO_3.0&REV_PMAP\94DE80724795BE5119B9159A&0 0
0 SCSI (Standard disk drives) Samsung SSD 850 PRO 512GB SCSI\DISK&VEN_SAMSUNG&PROD_SSD_850_PRO_512G\4&38AC3FC7&0&000000 0
1 SCSI (Standard disk drives) HGST HTS721010A9E630 SCSI\DISK&VEN_HGST&PROD_HTS721010A9E630\4&38AC3FC7&0&020000 2
2 SCSI (Standard disk drives) HGST HTS721010A9E630 SCSI\DISK&VEN_HGST&PROD_HTS721010A9E630\4&38AC3FC7&0&030000 3
7 USB (Standard disk drives) SDXC Card USBSTOR\DISK&VEN_GENERIC&PROD_STORAGE_DEVICE&REV_0819\000000000819&GL&33[/HTML]