Fixes for duplicate guids

This commit is contained in:
Przemysław Kłys
2020-04-27 21:11:37 +02:00
parent f518548880
commit 9675324b07
5 changed files with 22 additions and 39 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
foreach ($Domain in $ForestInformation.Domains) {
$QueryServer = $ForestInformation['QueryServers'][$Domain]['HostName'][0]
Get-GPO -All -DomainName $Domain -Server $QueryServer | ForEach-Object {
$GPOCache[$_.ID.Guid] = $_
$GPOCache["$Domain$($_.ID.Guid)"] = $_
}
}
}