Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

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

$
0
0

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


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>