< Back

Get-GPWmiFilter

Tue Jan 14, 2020 12:16 am

NAME Get-GPWmiFilter



SYNOPSIS

Get a WMI filter in current domain





SYNTAX

Get-GPWmiFilter [[-Name] <String[]>] [-Server <String>] [-Credential <PSCredential>] [<CommonParameters>]



Get-GPWmiFilter -Guid <Guid[]> [-Server <String>] [-Credential <PSCredential>] [<CommonParameters>]





DESCRIPTION

The Get-GPWmiFilter function query WMI filter(s) in current domain with specific name or GUID.





PARAMETERS

-Name <String[]>

The name of WMI filter you want to query out.

Default Value: '*'



Required? false

Position? 1

Default value *

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Guid <Guid[]>

The guid of WMI filter you want to query out.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Server <String>

The server to contact.

Specify the DNS Name of a Domain Controller.



Required? false

Position? named

Default value $env:USERDNSDOMAIN

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>

The credentials to use to contact the targeted server.



Required? false

Position? named

Default value

Accept pipeline input? false

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



OUTPUTS



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



PS C:\\>Get-GPWmiFilter -Name 'Virtual Machines'



Get WMI filter(s) with the name 'Virtual Machines'









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



PS C:\\>Get-GPWmiFilter



Get all WMI filters in current domain











RELATED LINKS