Getting GPOS and GPO Links
This script creates a txt file with the next information:
– GPOName
– LinksTo
– Enabled
– NoOverride
– CreatedDate
– ModifiedDate
Script:
$names=get-gpo -all
$output= foreach ($name in $names) {
get-gpolink -name $name.DisplayName
}
$output | out-file C:\temp\GpoandLinks.txt