1 2 3 4 5 6 7 8 9 |
Get-GPO -All | %{ if ( $_ | Get-GPOReport -ReportType XML | Select-String -NotMatch "<LinksTo>" ){ Write-Host $_.DisplayName "| Utilizada" } else { Write-Host $_.DisplayName "| No utilizada" } } |
