You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
#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 } }
The text was updated successfully, but these errors were encountered:
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.
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.
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.
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
}
}
The text was updated successfully, but these errors were encountered: