Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » Delete or Rename and Create a Protected Organisation Unit in AD
  • Windows 11 Taskmanager 1
    How to end a program via the Task Manager in Windows 11 Windows
  • servicechannels3 1
    Long Term Servicing Branch vs Semi-Annual Channel Windows
  • Featured image multi monitor
    Enhanced Multi-Monitor Experience with Windows 11 Windows
  • How To Enable Single Sign On (SSO) For Windows Admin Center
    Setup Windows Admin Center Modern Gateway for Single Sign-On Windows Server
  • Screenshot 2020 06 25 at 22.51.15
    Why is Data recovery is almost impossible from an overwritten Hard Drive Windows
  • feature photo terraform
    How to install Amazon RDS using Terraform Linux
  • Windows Admin Center v2   2401 install   2306 to 2311 upgrade
    Upgrade Windows Admin Center 2306 – 2311: Install WACmg 2410 Network | Monitoring
  • google sdk feature
    How To Install Google Cloud SDK on a Linux System Linux

Delete or Rename and Create a Protected Organisation Unit in AD

Posted on 01/05/202322/08/2024 Christian By Christian No Comments on Delete or Rename and Create a Protected Organisation Unit in AD
Manage OU

Organizational units (OUs) in an Active Directory Domain Services (AD DS) managed domain to let you logically group objects such as user accounts, service accounts, or computer accounts. In this article, I will show you how to Delete or Rename and Create a Protected Organisation Unit in AD. Please see these related guides: How to add or delete users and set permissions in Azure Active Directory, and how to detect who disabled a user in Active Directory – Best Monitoring Tools and Software.

You can then assign administrators to specific OUs, and apply group policy to enforce targeted configuration settings. how to create Organisation Units, Service Accounts, and Active Directory Security Groups, and Create and find Organisation Unit paths in AD.

Note: If your Organisation Units (OU) in your Active Directory domains are not protected from accidental deletion. Your AD can experience disruptions that might be caused by the accidental bulk deletion of objects by inexperienced admins or hackers.

Fix do not have sufficient privileges to delete OU. This object is protected from accidental deletion

When you try to delete an Organisation Unit (OU) in Active Directory Users and Computers (ADUC). You may run into the following error that you don’t have sufficient privileges to delete Domain Windows Computers.

Or the object is protected from accidental deletion.
Protected-OU-in-AD

To find our way around this issue, Please launch this from the Tools menu under Server Manager. Locate the Organisation Unit you wish to delete.

As you can see, this OU is protected from accidental deletion and as such the error below will be prompted when an OU deletion is interested.

Please see how to add or delete users and set permissions in Azure Active Directory, how to Fix MDT accidental OS deletion, and how to Query and display Windows information via WMI Explorer.

Delete an Organisation Unit

Right-click on the Organisation Unit (OU) and select Properties. Please see LDAP: What is Lightweight Directory Access Protocol.

OU-Properties

Click on the Object Tab on the Computer Object Properties. In my case, it is TechPCs Properties.

Note: If you do not have this option to untick, ensure the View > Advanced Features in Active Directory Users and Computers is ticked.

Here is a similar article on this topic: How to delete Organizational Unit in Active Directory, and how to Install Winget on Windows Server.

Object-Computer-Properties-1

Uncheck the button close to Protect object from accidental deletion, and click on Ok.

Please see How to move a computer object from one container (OU) to another, How to Check and Reset Network Data Usage in Windows 11, and what are the various ways to restart an AWS EC2 instance.

Please Uncheck the button close to Protect object

Now, proceed with the deletion of the computer object once more. Select the Organisation Unit (OU) you want to delete and click on delete.

Delete-OU

On the confirmation window, click on Yes to delete the Organisation Unit (OU).

Confirm-Organisation-Unit-OU-deletion-1

The Organisation Unit (OU) has been deleted.

Active Directory OU deleted

You can also achieve this via PowerShell where theGet-ADOrganizationlUnit, identifies the specific OU. The Set-ADObject removes the flag for ‘Protect object from accidental deletion.’

Lastly, Remove-ADOrganizationalUnit deletes the OU and suppresses any confirmation prompts. Incidentally, the ‘-PassThru‘ switch tells the final cmdlet to reference the object already specified (our OU).

Get-ADOrganizationalUnit -identity "OU=TechPCs ,DC=Techdirectarchive,DC=local" | Set-ADObject -ProtectedFromAccidentalDeletion:$false -PassThru | Remove-ADOrganizationalUnit -Confirm:$false

Create a Protected OU in AD

Open Active Directory Users and Computers. Select the OU where you wish to create a nest OU. Right-click on the OU and select New and then Organisation Unit as shown below.

Steps-to-create-an-OU-in-Active-Directory

In the New Object window, please enter the Name and by default, the protected container from accidental deletion is selected.

If you wish to create an OU you do not care if deleted accidentally, then you can uncheck the button ” Protectconatiner from accidental deletion”.

New-Object-OU-created

As you can see below, the OU has been created.

Here-is-the-newly-created-OU

Rename an Organisation Unit in AD

The process to rename a protected OU in Active Directory is simple. Here are the steps you need to follow. Open Active Directory Users and Computers, right-click on the OU you wish to rename and click on rename.

OU-Rename

The OU will be highlighted thereby proving you the form to rename it and click on Enter

Enter-the-NEw-oU-name
New-OU-name

We have renamed the OU.

done-renaming-the-OU

I hope you found this blog post helpful on how to delete or Rename and Create a Protected Organisation Unit in AD. Please let me know in the comment section if you have any questions.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:Active Directory, Active Directory Administrative Center, Active Directory Domain Services, Windows Server 2016

Post navigation

Previous Post: How to Check and Reset Network Data Usage in Windows 11
Next Post: How to Disable BitLocker on Windows 10

Related Posts

  • windows1019h2
    Synchronize your Domain Controller with an external time source Windows Server
  • image 10
    How to use Microsoft SQL Server Management Studio to Export and Import your MsSQL database from Azure to local computer AWS/Azure/OpenShift
  • screenshot 2020 04 09 at 02.57.27
    Import certificates into Trusted Root and Personal certificate store Windows Server
  • Netstat
    Network statistics: How to save netstat command output to a text Web Server
  • FIX RDP Authentication Error
    Fix Remote Connection Issue: An Authentication Error Has Occurred with Code 0x80004005 Windows
  • GPO Blocked Downloads 3
    How to Block downloads on Microsoft Edge using GPO on Windows Server 2019 and 2022 Windows

More Related Articles

windows1019h2 Synchronize your Domain Controller with an external time source Windows Server
image 10 How to use Microsoft SQL Server Management Studio to Export and Import your MsSQL database from Azure to local computer AWS/Azure/OpenShift
screenshot 2020 04 09 at 02.57.27 Import certificates into Trusted Root and Personal certificate store Windows Server
Netstat Network statistics: How to save netstat command output to a text Web Server
FIX RDP Authentication Error Fix Remote Connection Issue: An Authentication Error Has Occurred with Code 0x80004005 Windows
GPO Blocked Downloads 3 How to Block downloads on Microsoft Edge using GPO on Windows Server 2019 and 2022 Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Windows 11 Taskmanager 1
    How to end a program via the Task Manager in Windows 11 Windows
  • servicechannels3 1
    Long Term Servicing Branch vs Semi-Annual Channel Windows
  • Featured image multi monitor
    Enhanced Multi-Monitor Experience with Windows 11 Windows
  • How To Enable Single Sign On (SSO) For Windows Admin Center
    Setup Windows Admin Center Modern Gateway for Single Sign-On Windows Server
  • Screenshot 2020 06 25 at 22.51.15
    Why is Data recovery is almost impossible from an overwritten Hard Drive Windows
  • feature photo terraform
    How to install Amazon RDS using Terraform Linux
  • Windows Admin Center v2   2401 install   2306 to 2311 upgrade
    Upgrade Windows Admin Center 2306 – 2311: Install WACmg 2410 Network | Monitoring
  • google sdk feature
    How To Install Google Cloud SDK on a Linux System Linux

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.