Summary: Use the Windows PowerShell 3.0 CIM classes to easily find detailed information about logical disks.
How can I use the Windows PowerShell 3.0 CIM classes to easily find detailed information about logical disks?
Use the Get-CimInstance cmdlet to retrieve only the keys from the Win32_LogicalDisk WMI class, and then pipe the results to the Get-CimAssociatedInstance cmdlet:
Get-CimInstance Win32_LogicalDisk -KeyOnly |
Get-CimAssociatedInstance