This is in continuation of my last post on Using PowerShell to get client information In this post will be exploring on the ways to do the same thing using WMI/CIM, Why ? With WQL syntax we can ask for only the properties we need rather than getting everything back. The post will cover 3 topics: Query individual Device in CM using WMI/CIM Query Members of a Device Collection using WMI/CIM Query Users in a User Collection using WMI/CIM To get the number of properties got back from a call to Get-CMDevice use Get-Member and Measure-Object like below: Most of the properties returned back may be empty depending on how you are using ConfigMgr e.g if you use endpoint protection than those attributes in the class will be populated else will be empty. Now if you see the output of Get-CMDevice is actually is a result of the SMS_CombinedDeviceResources Let me tell you a little secret :-$ ...if you are looking forward to explore WMI part of ConfigMgr and have a doubt on whic
Infra + Dev's ramblings