Skip to content

Instantly share code, notes, and snippets.

@belotn
Created October 4, 2013 13:10
Show Gist options
  • Save belotn/6825653 to your computer and use it in GitHub Desktop.
Save belotn/6825653 to your computer and use it in GitHub Desktop.
GEt List of empty GPO require module grouppolicy
get-gpo -All |?({ $gpo = get-gporeport -Name $_.DisplayName -ReportType xml; $gpo.GPO.Computer.ExtensionData -eq $null -and $gpo.GPO.User.ExtensionData -eq $null}) | select DisplayName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment