PowerTip: Use PowerShell 3.0 CIM Class to Find Logical Disk Info

Summary: Use the Windows PowerShell 3.0 CIM classes to easily find detailed information about logical disks.

Hey, Scripting Guy! Question How can I use the Windows PowerShell 3.0 CIM classes to easily find detailed information about logical disks?

Hey, Scripting Guy! Answer 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