How to view unlinked GPOs in Active Directory?
Read on to know how to view unlinked GPOs in Active Directory (AD) using PowerShell and how you can get it done easily with ADManager Plus.
Windows PowerShell
- Identify the domain for which the unlinked GPOs are to be obtained.
- Create and compile the script for viewing the unlinked GPOs. Execute the script in PowerShell.
- Sample script for viewing the unlinked GPOs:
Copied
Get-GPO -All |Where-Object { $_ | Get-GPOReport -ReportType XML| Select-String -NotMatch "<LinksTo>" } | export-csv -path C:\Users\Administrator\Documents\Scripts\hello1.csv
Click to copy entire script
ADManager Plus
- Navigate to Reports > GPO Reports > Unused GPOs.
- Select the Domain and click Generate You can even export the reports as CSV, PDF, XLSX or HTML.
- You can even export the reports as CSV, PDF, XLSX or HTML.
Screenshot
» Start 30-day Free Trial
This reports gives a list of unused Group Policy objects in the domain.
Although generating unlinked GPOs with native tools like PowerShell looks simple, it comes with a few limitations:
- The PowerShell script can be run only from the computers which have the Active Directory Domain Services role installed in them.
- Need for a new script, in case the list of unlinked GPOs are to be exported. .
- The syntax, parameters and iterations need to be correct. A typo or incorrect syntax might be difficult to spot and rectify, especially when the script is a long one.
ADManager Plus lets you view unlinked GPOs with a few clicks from its web-based GUI console. It also has options for scheduling and automatically emailing the reports. Learn more about it here.