OS Task Sequence – Move AD OU Site

The following configuration can be used in a Configuration Manager Zero Touch OS Deployment to automatically move a computer object to the correct OU according to its Active Directory site.

For this example, we will be moving the computer AD object to the “CityOU” OU if it is currently in the “CitySite” AD Site.

  1. Open your OS Deployment Task Sequence
  2. Select ‘Add’ ‘Settings’ and then ‘Apply Network Settings’
  3. Change the name to “Apply Network Settings – City”
  4. From the ‘Properties’ tab,
    1. select ‘Join a domain’
    2. Enter in the name of the domain
    3. Using the Browse button, select the correct OU (CityOU)
    4. Enter in an account username and password which has access to move computer AD objects
  5. From the ‘Options’ tab
    1. Select ‘Add Condition’ then ‘If statement’
    2. With ‘All conditions’ selected, click ‘OK’
    3. Select ‘Add Condition’ and then ‘Query WMI’
    4. Under ‘QWL Query’ enter
    5. select * from Win32_NTDomain where ClientSiteName = 'CitySite'
  6. Click ‘Apply’ to save the changes.

Was this article helpful?

Related Articles