Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Find WMI Classes Related to Disks

$
0
0

Summary: Use Windows PowerShell 3.0 to help find WMI classes related to disks.

Hey, Scripting Guy! Question How can I find WMI classes that will return information about disks on my local computer?

Hey, Scripting Guy! Answer Use the Get-CimClass cmdlet in Windows PowerShell 3.0. Use a wildcard character for the class name, and use the QualifierNameparameter to filter only dynamic WMI classes:

Get-CimClass -ClassName *disk* -QualifierName dynamic


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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