TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Post an article
Translate this page
Powered by
Microsoft® Translator
Wikis - Page Details
First published by
Patris_70
(eMicrosoft Partne)
When:
25 Jul 2013 3:49 PM
Last revision by
Peter Geelen
(MVP, Microsoft Community Contributor)
When:
13 Jan 2021 7:33 AM
Revisions:
7
Comments:
2
Options
Subscribe to Article (RSS)
Share this
Engage!
Wiki Ninjas Blog
(
Announcements
)
Wiki Ninjas on Twitter
TechNet Wiki Discussion Forum
Can You Improve This Article?
Positively!
Click Sign In to add the tip, solution, correction or comment that will help other users.
Report inappropriate content using
these instructions
.
Wiki
>
TechNet Articles
>
Active Directory : Restore Default Permissions on Organizational Units (OU)
Active Directory : Restore Default Permissions on Organizational Units (OU)
Article
History
Active Directory : Restore Default Permissions on Organizational Units (OU)
Sometime, we have problem with permissions on Actice Directory Organizational Units (OU). For example, our support user or other admin delete some permissions!
Now, we have problem and we must restore default permissions on OU.
Here is a real example on my TestLAB. I have a OU called MCA, right click on MCA OU, select Properties, select Security, then click Advanced. You can view ACEs.
And here is OU Owner (Domain Admins).
Now, I clear the
Include inheritable permissions from this object's parent
check box, then I delete other
ACEs
.
Then, I change
Owner
from Domain Admis group to user Administrator.
Now, I select
Object
tab, and clear
Protect object from accidental deletion
check box.
Then, I give
delegation permissions
to 3x users. User Ed Price has some delegation permission for user object. User Richar Mueller has some delegation permission for computer object. User Patris has delegation permission for moving computers.
The question is, how can easily restore default permissions on OU?
Here is soloution. I create a new OU, called
DefaultOUPermissions
.
Right click on domain name, select
New
, then click
Organizational Units
.
Write OU name, then click
OK
.
I check ACEs and default Owner.
Now, we use MAGIC Tool, called
PowerShell
. Open
AD-PowerShell
with
Run as Administrator
.
We use Get-Acl and Set-Acl commands, but first we need change drive to
AD
drive or location. Run following command first:
Set-Location AD:
Then, we must take a sample for default permissions, such as ACEs, Owner and etc. Run following command (my sample OU name is DefaultOUPermissions and domain name is Contoso.com):
$OUDefaultAcl = (Get-Acl "AD:OU=DefaultOUPermissions,DC=Contoso,DC=Com")
Now, I restore MCA permission to default. Run following command:
Set-Acl "AD:OU=MCA,DC=Contoso,DC=Com" -AclObject $OUDefaultAcl
I check MCA. As you see, all permissions restored and Delegation permissiond deleted.
Owner restored again to Domain Admins group.
Protect object from accidental deletion checked.
Please, if you find article useful, write your own article in TechNet Wiki to help TechNet Wiki community.