Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group Policy Content - new section "all" #25

Open
jaegerschnitzel opened this issue Sep 1, 2021 · 3 comments
Open

Group Policy Content - new section "all" #25

jaegerschnitzel opened this issue Sep 1, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@jaegerschnitzel
Copy link

jaegerschnitzel commented Sep 1, 2021

Is it possible to implement a new section where all group policies are listed including all set keys and values?
That would be very helpful to search all group policies for a special keyword.

Right now I'm using a powershell command to do this but I prefer using your outstanding HTML report :)

$String = "gotomeeting"
$Domain = "TEST.LOCAL"
$NearestDC = (Get-ADDomainController -Discover -NextClosestSite).Name

#Get a list of GPOs from the domain
$GPOs = Get-GPO -All -Domain $Domain -Server $NearestDC | sort DisplayName

#Go through each Object and check its XML against $String
Foreach ($GPO in $GPOs) {

Write-Host "Working on $($GPO.DisplayName)"

#Get Current GPO Report (XML)
$CurrentGPOReport = Get-GPOReport -Guid $GPO.Id -ReportType Xml -Domain $Domain -Server $NearestDC

If ($CurrentGPOReport -match $String) {
Write-Host "A Group Policy matching ""$($String)"" has been found:" -Foregroundcolor Green
Write-Host "- GPO Name: $($GPO.DisplayName)" -Foregroundcolor Green
Write-Host "- GPO Id: $($GPO.Id)" -Foregroundcolor Green
Write-Host "- GPO Status: $($GPO.GpoStatus)" -Foregroundcolor Green
}
}

@PrzemyslawKlys
Copy link
Member

pushing everything into single table is doable, but it will be a mess (as in probably it will need to have 50+ columns) and usefulness will be very limited.

@jaegerschnitzel
Copy link
Author

Thanks for your feedback. You are right this ends up in a complete mess most probaly.
If you have any idea how to solve this problem, that would be really great. But otherwise no big deal and you can close the request.

@PrzemyslawKlys
Copy link
Member

I guess what could be done is some sort of Invoke-GPOZaurr -Search <...> where it would only display tabs with content that have that string/strings you're looking for including pushing them as search to all tables to highlight. But this requires some heavy work. I'll leave it open.

@PrzemyslawKlys PrzemyslawKlys added the enhancement New feature or request label Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants