API Reference
Command
New-ADXGpoWmiFilter
Creates a new GPO WMI filter and optionally links it.
Examples
Example 1
New-ADXGpoWmiFilter -Domain contoso.com -Name 'ServersOnly' -Query "SELECT * FROM Win32_OperatingSystem WHERE ProductType=3"
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
New-ADXGpoWmiFilter -Domain <string> -Name <string> -Query <string> [-Namespace <string>] [<CommonParameters>]#Parameters
- Domain string
- DNS domain name where the filter is created.
- Name string
- WMI filter display name.
- Query string
- WQL query to apply.
- Namespace string
- WMI namespace (default: root\CIMv2).
Outputs
ADPlayground.Gpo.GpoWmiFilter