Summary: Use the Configuration Manager cmdlets to show all available User and Device collections.
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?
Use the Get-CMCollection cmdlet with Export-CSV, for example:
Get-CMCollection | Export-CSV Collectionlist.csv