Improve Remove-GPOZaurr

This commit is contained in:
Przemyslaw Klys
2020-12-05 00:34:01 +01:00
parent 2c2b6df475
commit 3a468f1cf2
+10 -1
View File
@@ -28,7 +28,16 @@
$Count = 0
}
Process {
Get-GPOZaurr -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation -GPOPath $GPOPath -ExcludeGroupPolicies $ExcludeGroupPolicies | ForEach-Object {
$getGPOZaurrSplat = @{
Forest = $Forest
IncludeDomains = $IncludeDomains
ExcludeDomains = $ExcludeDomains
ExtendedForestInformation = $ExtendedForestInformation
GPOPath = $GPOPath
ExcludeGroupPolicies = $ExcludeGroupPolicies
}
Get-GPOZaurr @getGPOZaurrSplat | ForEach-Object {
$DeleteRequired = $false
if ($Type -contains 'Empty') {