November 17th, 2015

PowerTip: List Collections in Configuration Manager

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.