web analytics


Active Directory Group and ConfigMgr Collection Creation Tool

Posted by:

To use this tool:

  1. Download and Unzip CM12_AD_Tool_v03.zip
  2. Right click on CM12_AD_Tool.ps1 and choose Properties.
  3. On the CM12_AD_Too.ps1 Properties dialog box, click on UnBlock and click OK.
  4. Fill the OU.CSV file
    1. DC – Domain Controller Name
    2. OU – Organizational Unit distinguishedName
    3. Domain – Domain Name
  5. Open PowerShell as an administrator
  6. Type Get-ExectuionPolicy. If the Execution Policy is RemoteSigned, then everything is OK. If the Execution Policy is Restricted, then type Set-ExectuionPolicy 1 and press Enter.
  7. Right click on CM12_AD_Tool.ps1 and choose Edit and open it with PS ISE
  8. From the tools menu click RUN

Log file is under c:\Windows\Temp\Errors.log

This tool is only tested with Windows Server 2012 AD DS and ConfigMgr 2012 SP1 RTM!


You can download this tool from here


About the Author:

Kaido Järvemets is a developer, consultant, trainer specializing in Microsoft System Center Configuration Manager and PowerShell Solutions at Coretech. Kaido frequently speaks at European conferences and had his US debut as speaker at MMS April 2013. Kaido is well-known in the Configuration Manager communities where he’s a key player in the PowerShell game. Kaido host one of the most complete Configuration Manager PowerShell library’s in the world with hundreds of free code samples ready to download and implement – www.cm12sdk.net. Kaido has been awarded Microsoft Most Valuable Professional (MVP) in Microsoft Enterprise Client Management for his work with Configuration Manager from 2011 – to present. Kaido is the founder of System Center User Group Estonia in 2011.


  1. Mike  October 10, 2012

    When I try to connect to the CM2012 server I get the following error…

    Method invocation failed because [System.Windows.Documents.Paragraph] doesn’t contain a method named ‘AddText’.
    At C:\temp\CM12_AD_Tool_2\CM12_AD_Tool_2.ps1:82 char:26
    + $NewParagraph.AddText <<<< ("$LogText")
    + CategoryInfo : InvalidOperation: (AddText:String) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

    • admin  October 11, 2012

      Can you tell me the OS version and DotNet version?

  2. Matt  January 10, 2013

    I’m getting the same error on Win7 x64 Ent. Latest .Net.

    it would be nice if this worked on my system…. My CM2012 server is Win 2008 R2 as we implimented this before 2012 was fully released.


    • admin  January 16, 2013

      You may run the tool on Windows 8 box also.


  3. Ronnie Jakobsen  January 15, 2013

    Very nice tool

    A nice addition would be if it could save selections and entries and reload these next time it runs :-)

  4. TWP  June 20, 2013

    Can you please help me with one thing? I want to edit the tool so for example the Site Server name already exists in the input box, the same thing with the CVS-file Location. I still want the option to change the values but whant to have some values there by default.

    • Kaido  June 21, 2013


      You need to add Text property like this in XML –


  5. RH  May 31, 2016

    This is a really great tool that I just recently found, and thank you for posting it. I do have a question though. How do I go about changing the schedule interval to once per week? I’ve tried changing the parameter CustomHours to RecurWeekly, but the script errors on that.

    Any help in getting the refresh schedule to occur once per week would be very much appreciated. Thank you.


Add a Comment