Project

GPOZaurr

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

Stars 1,256
Forks 120
Open issues 15
PowerShell Gallery downloads 421,558
Release v1.1.11
Language: PowerShell Updated: 2026-10-30
Command

Remove-GPOZaurrWMI

Module
GPOZaurr

Removes Group Policy WMI filters based on specified criteria.

Syntax

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

Description

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

Example 1

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

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

Example 2

Remove-GPOZaurrWMI -Name "TestWMIFilter"

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

Parameters

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

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.