Skip to content

Instantly share code, notes, and snippets.

@NonSecwitter
Last active May 24, 2017 18:47
Show Gist options
  • Save NonSecwitter/c6f85440870060ed9886930bc8bb5788 to your computer and use it in GitHub Desktop.
Save NonSecwitter/c6f85440870060ed9886930bc8bb5788 to your computer and use it in GitHub Desktop.
$OU = ""
$GPOs = (Get-GPInheritance -Target $OU)
$guids = $GPOs.InheritedGpoLinks.GpoId.Guid
foreach($guid in $guids)
{
$guid
[XML]$RSOP = Get-GPOReport -Guid $guids[0] -ReportType XML
$RSOP.SelectNodes("//*[local-name()='DestinationPath']").InnerText
pause
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment