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
  • Synology Wi Fi CC400W
    Review of the Synology CC400W Installation and Configuration Network | Monitoring
  • Prevent the downloads of apps without password on App store
    Download Apps without passwords on App Store Mac
  • How to Disable the Password Manager of Google Chrome
    How to Disable the Password Manager of Google Chrome Password Manager
  • 41592 3264bitw10
    What is the difference between 32-bit and 64-bit processors Windows Server
  • Screenshot 2022 04 02 at 23.18.48
    CVE-2022-26503 Veeam Agent for Microsoft Windows Vulnerability Backup
  • wacxx
    Install Windows Admin Center in an unattended mode using a self-signed certificate Windows
  • How to Enable Time Limit to Disconnect Remote Desktop After Inactivity
    How to Enable Time Limit to Disconnect Remote Desktop After Inactivity Windows
  • cisco switches 2
    How to disable Spanning-Tree Globally Network | Monitoring

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.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Pocket (Opens in new window) Pocket
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • 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

  • 2022 1
    Install Windows Server 2022 on VirtualBox Network | Monitoring
  • Logon fsilure errors
    Logon Failure Reasons for Windows Event Viewer Windows Server
  • Keb
    How to configure a service account for Kerberos delegation Windows Server
  • banner 3
    How to Enable or Disable SuperFetch in Windows 11 Windows
  • 1 kajkbmlyehn0inifwrh 8w
    How to install Kerberos packages via Cygwin in Windows Windows Server
  • Hyper V Virtual Switch Copy
    How to Create VDI Collections on Windows Server 2022 Network | Monitoring

More Related Articles

2022 1 Install Windows Server 2022 on VirtualBox Network | Monitoring
Logon fsilure errors Logon Failure Reasons for Windows Event Viewer Windows Server
Keb How to configure a service account for Kerberos delegation Windows Server
banner 3 How to Enable or Disable SuperFetch in Windows 11 Windows
1 kajkbmlyehn0inifwrh 8w How to install Kerberos packages via Cygwin in Windows Windows Server
Hyper V Virtual Switch Copy How to Create VDI Collections on Windows Server 2022 Network | Monitoring

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

  • Synology Wi Fi CC400W
    Review of the Synology CC400W Installation and Configuration Network | Monitoring
  • Prevent the downloads of apps without password on App store
    Download Apps without passwords on App Store Mac
  • How to Disable the Password Manager of Google Chrome
    How to Disable the Password Manager of Google Chrome Password Manager
  • 41592 3264bitw10
    What is the difference between 32-bit and 64-bit processors Windows Server
  • Screenshot 2022 04 02 at 23.18.48
    CVE-2022-26503 Veeam Agent for Microsoft Windows Vulnerability Backup
  • wacxx
    Install Windows Admin Center in an unattended mode using a self-signed certificate Windows
  • How to Enable Time Limit to Disconnect Remote Desktop After Inactivity
    How to Enable Time Limit to Disconnect Remote Desktop After Inactivity Windows
  • cisco switches 2
    How to disable Spanning-Tree Globally Network | Monitoring

Subscribe to Blog via Email

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

Join 1,832 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.