AD OU Owner Manager is a user-friendly tool that allows you to view and securely change Organizational Unit (OU) ownerships in your Active Directory environment. This tool provides a solution especially for those who want to standardize OU ownerships with Domain Admins or other administrator groups.
Core Features
OU Owner Report Section:
Automatically scan all current OU ownership information with the Generate OU Owner Report button
All information is automatically exported to a CSV file for later review and documentation purposes
Change OU Owner Section:
Select Domain Admins or other administrator groups (containing admin value) from the dropdown menu
Assign the selected group as the owner of all OUs using the Change Owner with Selected Group button
View change results in the right panel after the operation
All changes are automatically recorded in a CSV file for change management and audit purposes
Why You Should Use This Tool
Easy to Use: Manage OU ownerships through a simple GUI interface
Bulk Operations: Change ownership of all OUs with a single click
Audit Compliance: Provide evidence for security audits with automatically generated CSV reports
Time Saving: Reduce hours of manual work to minutes
Error Prevention: Eliminate human errors that can occur during manual ownership changes
Usage Steps
Document Current State:
Launch the AD OU Owner Manager powershell script on ISE Click on “Generate OU Owner Report” Save the generated CSV report (as evidence of pre-change state)
Change Ownerships:
Select “Domain Admins” group or your preferred administrator group from the dropdown menu Click on “Change Owner with Selected Group” Review the results on screen when the process completes Save the automatically generated post-change CSV report
Verify Results:
Review the post-change report to ensure all OUs were correctly updated In case of any errors, manual corrections can be made using the previous CSV report
Security Benefits
Using this tool to transfer OU ownerships to the Domain Admins group provides these advantages:
Standardized Permissions: Consistent ownership and permission structure for all OUs Reduced Attack Surface: Elimination of security risks from scattered permission structures Simplified Management: Easier tracking of changes through centralized management Audit Readiness: Easy demonstration that OU ownerships are correctly configured during security audits
Periodically use the tool (e.g., quarterly) to check OU ownerships
GUI Interfaces , If you want to try the script I wrote, you can get it on Github
If you found this powershell script helpful, feel free to share it with your team and check out my blog for more quick tips and insights!
Analyzing and Updating Name Server (NS) Records on Windows DNS Servers
Managing Windows DNS is crucial for ensuring that network infrastructures remain up-to-date and function correctly. The accuracy and timeliness of Name Server (NS) records are essential elements that must be frequently monitored. In this article, we will discuss how a script operates to analyze and update Name Server records on Windows DNS servers.
How Does the Script Work?
The developed script runs on Windows DNS servers and performs the following key operations:
Scanning All Name Server Records:
When the “Analyze” button is pressed, the script scans all Forward Lookup Zone and Reverse Lookup Zone areas and lists the current Name Server (NS) records.
Forward Lookup Zone and Reverse Lookup Zone Scanning:
It collects the existing Name Server records for the Forward Lookup Zone and Reverse Lookup Zone but does not make any modifications.
Updating Reverse Lookup Zone:
When the “Update NS” button is pressed, the NS records in the Reverse Lookup Zone are checked.
Missing NS records are added.
Old and unused NS records are removed.
Listing Old Name Server Records:
No updates are made for the Forward Lookup Zone, but outdated and unused NS records are displayed for the system administrator’s review.
# Function to clean inactive NS records and add missing ones
function Clean-InactiveNSRecords {
if ([System.Windows.Forms.MessageBox]::Show(
"Are you sure you want to update NS records in reverse lookup zones?`n`nThis will:`n- Remove inactive NS records from reverse lookup zones`n- Add missing active NS records to reverse lookup zones`n`nOther zones will not be modified.",
This script was developed to improve DNS management efficiency. Over time, DNS servers may experience performance issues due to outdated records, making regular updates crucial. It is particularly useful in the following scenarios:
When making major changes to the network.
When updating existing Name Server records.
When identifying and removing old NS records.
When regularly optimizing Reverse Lookup Zone areas.
As a result, with this script
To ensure that Windows DNS servers function correctly, NS records must be continuously monitored and updated. This script provides a great convenience for DNS administrators by offering both analysis and update functions. Using automation like this to keep your DNS infrastructure healthy and up to date is highly beneficial.
If you found this trick helpful, feel free to share it with your team and check out my blog for more quick tips and insights!