Today I got a call from a System Center Configuration Manager (SCCM/ConfigMgr) customer that wanted to automate the creation of device collections for each SCCM client version, that was in their environment. I guess summer time means “time to cleanup/fix all the broken clients” 🙂
A couple of years ago I create another similar script for CU updates: https://gallery.technet.microsoft.com/SCCM-Creating-Collections-f334c7f0 but this time I wanted to make the script simpler, fully automated and only create the collections that was needed by the customer.
This script will pull a list of all the client versions from the SCCM site server, and create a collection for each of them. That way you don’t need to maintain the script every time a new version/update of SCCM are released. Simply just run the script again.
Download the Script here: https://gallery.technet.microsoft.com/SCCM-Creating-Collections-cf9b6f1c