Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

Get List of Unlinked GPO's from Domain.

$
0
0

Below Powershell commands will give the list of all Unlinked GPO's from a domain.

$unlinkedGPOs = Get-GPO -All | Where-Object { $_ | Get-GPOReport -ReportType XML | Select-String -NotMatch "<LinksTo>" }

$unlinkedGPOs | Sort-Object -Property DisplayName | Select-Object DisplayName,CreationTime,ModificationTime | Format-Table -autosize


Viewing all articles
Browse latest Browse all 31638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>