Evotec

Project

GPOZaurr

GPOZaurr helps inspect, report on, and remediate Group Policy environments with PowerShell.

Stars 1,166
Forks 115
Open issues 16
PowerShell Gallery downloads 417,764
Release v1.1.9
Language: PowerShell Updated: 2026-04-11

API Reference

Function

Remove-GPOZaurrWMI

Namespace GPOZaurr

Removes Group Policy WMI filters based on specified criteria.

Remarks

This function removes WMI filters based on the provided GUIDs or names within the specified forest or domains. It retrieves WMI filters associated with the GPOs and removes them.

Examples

Authored help example

EXAMPLE 1

PS >


Remove-GPOZaurrWMI -Guid "12345678-1234-1234-1234-123456789012"
        

Description ----------- Removes the WMI filter with the specified GUID.

EXAMPLE 2

PS >


Remove-GPOZaurrWMI -Name "TestWMIFilter"
        

Description ----------- Removes the WMI filter with the specified name.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Remove-GPOZaurrWMI [-ExcludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-Guid <Guid[]>] [-IncludeDomains <String[]>] [-Name <String[]>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ExcludeDomains String[] optionalposition: 3pipeline: False
Specifies an array of domains to exclude from the removal process.
ExtendedForestInformation IDictionary optionalposition: 5pipeline: False
Specifies additional information about the forest.
Forest String optionalposition: 2pipeline: Falsealiases: ForestName
Specifies the forest name where the WMI filters are located.
Guid Guid[] optionalposition: 0pipeline: False
Specifies an array of GUIDs of the WMI filters to be removed.
IncludeDomains String[] optionalposition: 4pipeline: Falsealiases: Domain, Domains
Specifies an array of domains to include in the removal process.
Name String[] optionalposition: 1pipeline: False
Specifies an array of names of the WMI filters to be removed.