From the PowerShell, I am trying to create a listing of each drive along with the name (Physical Disk Id).
I am able to do this separately by running each of these commands:
wmic diskdrive get serialnumber
wmic diskdrive get name
However, what I would like to do is have this return as a single output with two columns. One column with SerialNumber and the other with Name.
Does anyone know how to merge these?