PowerTip: Use PowerShell to Find Key of WMI Class
![Doctor Scripto](https://devblogs.microsoft.com/scripting/wp-content/uploads/sites/29/2018/09/dr_scripto-102x150.gif)
Summary: Use Windows PowerShell to find the key of a WMI class. How can I use Windows PowerShell to discover the property that has the key qualifier for a WMI class? Use Get-CimClass and iterate through the properties:$class = Get-CimClass -ClassName Win32_Processforeach ($property in $class.CimClassProperties) { $pr...