Introduction
This article helps you create and delete an Organizational Unit (OU) in Active Directory. It also helps you prevent accidental deletion of OU.
What is OU?
It is a container within a Microsoft Active Directory domain and it helps administrators to logically distribute objects such as accounts, groups, computers, etc. It also helps administrators to divide domains into groups to delegate administrative tasks.
Organization Unit vs Container
The primary difference between them is on OU administrators can assign group policy objects. However, containers are built in AD. Containers do inherit group policy from a higher level but you cannot link specific policies to them.
Create an OU in AD
In Server Manager, click on Tools and Active Directory Users and Computers
![](https://techyul.com/wp-content/uploads/2022/06/image-64.png)
Right-click on your domain.local (techyul.com), click on New, and select Organizational Unit
![](https://techyul.com/wp-content/uploads/2022/06/image-65.png)
Name your OU. Keep the Protect container from accidental deletion checked, and click OK
Note: By keeping this option checked, it protects someone from accidental deletion.
![](https://techyul.com/wp-content/uploads/2022/06/OU-protect-from-accidential-deletion.png)
Now you can see your created OU, test OU
![](https://techyul.com/wp-content/uploads/2022/06/u-can-see-ur-OU.png)
Delete an OU
Note: The check mark you select on the above step prevents you from deleting the OU. First, we can look at what happens if we try to delete it.
Right-click on my OU and select Delete
![](https://techyul.com/wp-content/uploads/2022/06/image-68.png)
Click Yes
![](https://techyul.com/wp-content/uploads/2022/06/image-72.png)
It prompts you with the error either you don’t have enough privilege or accidental deletion is check while we were create the OU
Click OK
![](https://techyul.com/wp-content/uploads/2022/06/image-71.png)
To delete the OU, click on View tab and select Advanced Features
![](https://techyul.com/wp-content/uploads/2022/06/image-73.png)
Now right-click on the OU and select Properties
![](https://techyul.com/wp-content/uploads/2022/06/image-74.png)
From the Properties, select Object tab, uncheck Protect object from accidental deletion and click OK
![](https://techyul.com/wp-content/uploads/2022/06/unckeck-accidential-deletion.png)
Note: You cannot see the Object tab from the OU properties by unchecking Advanced Features option
![](https://techyul.com/wp-content/uploads/2022/06/not-check-advanced-features-option.png)
![](https://techyul.com/wp-content/uploads/2022/06/check-advanced-features-option.png)
Right-click on the OU and select Delete
![](https://techyul.com/wp-content/uploads/2022/06/image-75.png)
Click Yes
![](https://techyul.com/wp-content/uploads/2022/06/image-76.png)
Our test OU has been deleted
![](https://techyul.com/wp-content/uploads/2022/06/image-77.png)
Make sure you deselect the Advanced Features option to prevent accidental deletion of other OU
![](https://techyul.com/wp-content/uploads/2022/06/image-78.png)
Conclusion
Now we know how to create and delete an OU.
Thank you for reading, I hope you like this article please leave a comment if you have any questions.
0 Comments