How to create ConfigMgr Collections from your AD Sites with Powershell

The other day I was asked if I had a script which would create device collections based on the Active Directory (AD) sites in your environment. As a matter of fact I had all the parts already there in two separate scripts I just needed to put together. If you have your AD configured correctly this script will create one Device Collection, limited to your ‘All Systems’ collection, with a full update every 7 days (default), for each AD Site you have. For the script to run you will need to execute it on the SMS Provider with the console installed and at least ConfigMgr 2012 SP1 or later. [Update … Continue reading

Written by , Posted .