June 12th, 2013

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

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.