PowerTip: List Collections in Configuration Manager

Doctor Scripto

Summary: Use the Configuration Manager cmdlets to show all available User and Device collections.

Hey, Scripting Guy! Question How can I use Windows PowerShell to list all the available User and Device collections in Configuration Manager 2012,
           and then export the list to a file?

Hey, Scripting Guy! Answer Use the Get-CMCollection cmdlet with Export-CSV, for example:

Get-CMCollection | Export-CSV Collectionlist.csv