< Back

Get-GPOWmiFilter

Tue Jan 14, 2020 12:13 am

NAME Get-GPOWmiFilter



SYNOPSIS

Gets all Group Policy Filters or by name





SYNTAX

Get-GPOWmiFilter [[-Name] <String[]>] [<CommonParameters>]





DESCRIPTION

This cmdlet depends on the GroupPolicy module





PARAMETERS

-Name <String[]>



Required? false

Position? 1

Default value *

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

String (Name of WMIFilter)





OUTPUTS

Microsoft.GroupPolicy.WmiFilter





NOTES





Created by Tore.Groneng@firstpoint.no @ToreGroneng 2016



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-GPOWmiFilter



Lists all (if any) WMIFilter configured in Group Policy Management









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-GPOWmiFilter -Name HR



Get a WMIFilter named HR









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>"HR" | Get-GPOWmiFilter



Get a WMIFilter named HR using the pipeline









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>"HR","AllClients" | Get-GPOWmiFilter



Gets WMIFilters named HR and Allclients using the pipeline











RELATED LINKS