Script Download: NewOSCCMCollection-OU.zip
http://gallery.technet.microsoft.com/scriptcenter/Create-User-Collections-1aab6226

This script shows how to create collections based on organizational units in System Center 2012 Configuration Manager SP1.

Currently, you often need to create collections based on organizational units in Active Directory. After that, you can deploy applications and packages for specific users and devices. Usually an Active Directory contains a lot of organizational units, it's a time consuming task to create collections based on organizational units in SCCM console.

So you want to use a script to ease your work.

image image
 image

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery