MDT 2012: DomainOUs List

There’s a feature in MDT that displays a dropdown list of Domain OU’s in the Lite Touch deployment wizard. There are 2 ways to set it up.

First, you can create a list of OU’s in the customsettings.ini by using the DOMAINOUS variable list. This first example demonstrates this:

DomainOUs-Customsettings.ini

This example shows the other method where you create a file in your scripts folder called DomainOUList.xml and list each OU in a separate element:

DomainOUs-DomainOU.XML

The result is you now get a dropdown list button next to the Organizational Unit in the deployment wizard.

DomainOUs-JoinDomainPane

The list displays the OU’s you entered earlier making it easier to select and reduce errors during deployments.

DomainOUs-JoinDomainPane2

 

There’s also an old post by Keith Garner here that shows how to display friendly names.

About Andrew Barnes

A Scripting and Deployment Specialist.
This entry was posted in Deployment, MDT 2010, MDT 2012 and tagged , . Bookmark the permalink.

10 Responses to MDT 2012: DomainOUs List

  1. Alexandr says:

    Thank you very much, it`s very useful for me!

    Like

  2. Josh says:

    Is there a way to force the selection of an OU. I don’t want my team deploying Computers without selecting an OU. Soi if anyone knows of a way you can’t click next without the selection of an OU, that would be much help!

    Like

    • Hi Josh,

      Yes, but you’d need to do some wizard editing. You’ll have to modify the wizard pane’s script and change the validation requirements so that the next button is not valid unless an OU is selected.

      I’m going to return to blogging and write a series of posts on wizard panes soon.

      Like

  3. Kevon Manuel says:

    Can you do the same thing for the Domain to Join? I’ve got the OU list down but would like to have a dropdown list for the Domains.

    Like

  4. jayman says:

    so how do i implement the .xml file…where should i place it…do i have to write something in customsettings.ini in order to point to the xml?

    Like

  5. GraceSolutions says:

    Ok guys! This script will prompt you for credentials and then generate a list of Organizational Units from Active Directory from the specified “SearchBase” that you specify, sort the results by CanonicalName (Example: “Domain.net/OU/OU/OU”) and then proceed to export each entry to “DomainOUList.xml”. Have a blessed day folks! I hope this helps somebody!

    Generates “DomainOUList.xml” file with each item formatted like the following

    Domain.com \ Test \ Computers \ Workstations \ Branches \ Test

    Script here.

    Like

  6. kevon27 says:

    can you show how to display friendly names for the OUs?

    Like

  7. Frederico Costa says:

    Man you ROCK! Cheers from Portugal

    Like

Leave a comment