PS C:\script> $a
Caption DeviceID Model Partitions Size
Intel Raid 1 Volume \\.\PHYSICALDRIVE0 Intel Raid 1 Volume 2 456116451840
Intel Raid 1 Volume \\.\PHYSICALDRIVE1 Intel Raid 1 Volume 1 1900409817600
How can I only list the DeviceID column? Desired output:
\\.\PHYSICALDRIVE0
\\.\PHYSICALDRIVE1
$a?$a | Select-Object -ExpandProperty DeviceIdprobably.