This PowerShell script helps you search all Group Policy Objects (GPOs) in the current domain for a specific string. It is useful when you need to quickly find where a setting, path, name, or keyword appears inside your GPOs without opening each policy manually.
What the script does
The script asks for a search string, loads all GPOs from the current domain, and generates an XML report for each one. It then checks whether the entered string exists in the report and collects all matching GPOs in a result list.
How it works
First, the script reads the string you want to search for. Then it retrieves all GPOs from the domain using the Group Policy module. After that, it loops through each GPO, creates a report, and compares the XML content with the search string. At the end, it displays all GPOs where a match was found.
Download on GitHub
You can download the script here: GitHub repository