# New-GPOZaurrWMI

Creates a new WMI filter based on a WMI filter query. Review available syntax, parameters, pipeline guidance, and reference details in GPOZaurr API Reference.

Project

GPOZaurr

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

[View on GitHub](https://github.com/EvotecIT/GPOZaurr) [Visit Website](#) [Releases](https://github.com/EvotecIT/GPOZaurr/releases/tag/v1.1.10) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/GPOZaurr/1.1.9)

Stars **1,257**

Forks **121**

Open issues **15**

PowerShell Gallery downloads **421,558**

Release **v1.1.11**

Language: PowerShell Updated: 2026-10-30

Command 

**Module**

`GPOZaurr`

Creates a new WMI filter based on a WMI filter query.

## Syntax

```
New-GPOZaurrWMI
[[-Description] <String>]
[[-ExcludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>]
[-Force]
[[-Forest] <String>]
[[-IncludeDomains] <String[]>]
[-Name] <String>
[[-Namespace] <String>]
[-Query] <String>
[-SkipQueryCheck]
[<CommonParameters>]
```

[#](#method-new-gpozaurrwmi-string-string-idictionary-switchparameter-string-string-string-string-string-switchparameter)

Parameter set: `All Parameter Sets`

## Description

This function creates a new WMI filter in Active Directory based on a specified WMI filter query.

## Examples

### Example 1

```powershell
New-GPOZaurrWMI -Name "TestWMIFilter1" -Query "SELECT * FROM Win32_OperatingSystem" -Force
Creates a new WMI filter named "TestWMIFilter1" targeting all Windows operating systems.
```

### Example 2

```powershell
New-GPOZaurrWMI -Name "TestWMIFilter2" -Query "SELECT * FROM Win32_Processor" -Forest "Contoso" -IncludeDomains "FinanceDomain"
Creates a new WMI filter named "TestWMIFilter2" targeting all processors in the "FinanceDomain" within the "Contoso" forest.
```

## Parameters

**-Description String optionalposition: 1**

The description for the new WMI filter. Default is an empty string.

**-ExcludeDomains String[] optionalposition: 5**

An array of domains to exclude from WMI application.

**-ExtendedForestInformation IDictionary optionalposition: 7**

Additional information about the forest for WMI customization.

**-Force SwitchParameter optional**

Switch to force the creation of the WMI entry without confirmation.

**-Forest String optionalposition: 4aliases: ForestName**

The forest to target for WMI creation.

**-IncludeDomains String[] optionalposition: 6aliases: Domain, Domains**

An array of domains to include for WMI application.

**-Name String requiredposition: 0**

The name of the new WMI filter to be created.

**-Namespace String optionalposition: 2**

The WMI namespace to target. Default is 'root\CIMv2'.

**-Query String requiredposition: 3**

The WMI filter query to be applied to the WMI entry.

**-SkipQueryCheck SwitchParameter optional**

Switch to skip the query check before creating the WMI entry.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:7F476B3F66D4D5D9A97B0DA3FCE7452EE5B3495A3707DBEF781256BE35EDAB32 -->
