Managing the OU structure
Similar to any other Active Directory object, the OU structure can be managed using Active Directory Administrative Center (ADAC), ADUC MMC, and PowerShell. In this section, I am going to demonstrate how to manage the OU structure using PowerShell.
Let's start this with a new OU. We can use the New-ADOrganizationalUnit
cmdlet to create a new OU. The complete syntax can be reviewed using the following command:
Get-Command New-ADOrganizationalUnit -Syntax
As the first step, I am going to create a new OU called Asia
to represent the Asia branch:
New-ADOrganizationalUnit -Name "Asia" -Description "Asia Branch"
In the preceding command, -Description
defines the description for the new OU. When there is no path defined, it will create the OU under the root. We can review the details of the new OU using the following command:
Get-ADOrganizationalUnit -Identity "OU=Asia,DC=rebeladmin,DC=com"
We can...