mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-08-11 19:26:55 +00:00
Improve Remove-GPOZaurr
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user