Asset and compliance
This section will mainly concentrates on gathering information and how to get details of devices, users, compliance settings, alerts, and so on. It also demonstrates how to create custom collections, add special configurations to collections, create custom client settings, install client agents, approve agents, and so on.
Collection details
Getting the collection details from PowerShell is as easy as using the console to get the details. You can use the Get-CMDeviceCollection
cmdlet to get the details of the available collection. We can use the basics by using Format-Table
with the autosize
parameter to get the neat view:
Get-CMDeviceCollection | Format-Table –AutoSize
We can also use the grid view to get the details popped out as a grid. This will give us a nice grid that we can scroll and sort easily:
Get-CMDeviceCollection | Out-GridView
We can use Name
or CollectionID
as the parameter to get the information of a particular collection:
Get-CMDeviceCollection &...