Files
GPOZaurr/Examples/Example-06-RemovingWMIFilters.ps1
T
Przemysław Kłys 7394c7b5cc Update
2020-04-09 19:55:46 +02:00

7 lines
333 B
PowerShell

Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
# By default it deletes WMI filter in $Env:USERDNSDOMAIN if no Forest/IncludeDomains/ExcludeDomains are specified
Remove-GPOZaurrWMI -Name 'Test' -WhatIf
# If we want to remove it from all domains within forest
Remove-GPOZaurrWMI -Name 'Test' -Forest 'ad.evotec.xyz' -WhatIf