< Back
Get-WmiFilter
Post
NAME Get-WmiFilter
SYNOPSIS
Gets WMI Filters in the domain.
SYNTAX
Get-WmiFilter [-Name] <String> [[-Domain] <String>] [-IncludeLinkInformation] [-Credential <PSCredential>]
[<CommonParameters>]
Get-WmiFilter [-Guid] <Guid> [[-Domain] <String>] [-IncludeLinkInformation] [-Credential <PSCredential>]
[<CommonParameters>]
Get-WmiFilter -All [[-Domain] <String>] [-IncludeLinkInformation] [-Credential <PSCredential>] [<CommonParameters>]
DESCRIPTION
The Get-WmiFilter cmdlet returns a specific WMI Filter object based on a name or GUID or returns all WMI Filters.
Optionally, link information for where each WMI filter is applied can be returned.
PARAMETERS
-Guid <Guid>
The GUID of the WMI Filter to get.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Name <String>
The "msWMI-Name" attribute of the WMI Filter to match.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-All [<SwitchParameter>]
Returns all WMI filters in the domain.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Domain <String>
The domain to perform the search on. This defaults to the domain of the current user.
Required? false
Position? 2
Default value [System.String]::Empty
Accept pipeline input? false
Accept wildcard characters? false
-IncludeLinkInformation [<SwitchParameter>]
If specified, information about where each WMI filter is applied is returned as well.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
Specifies a user account that has permission to perform this action. The default is the current user.
Type a user name, such as "User01" or "Domain01\\User01", or enter a PSCredential object, such as one generated
by the Get-Credential cmdlet. If you type a user name, you will be prompted for a password.
Required? false
Position? named
Default value [System.Management.Automation.PSCredential]::Empty
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
System.Guid
System.String
OUTPUTS
System.Management.Automation.PSObject[]
NOTES
AUTHOR: Michael Haken
LAST UPDATE: 1/4/2017
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-WmiFilter -All -Domain contoso.com
Gets all of the WMI Filters in contoso.com
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-WmiFilter -All -IncludeLinkInformation
Gets all of the WMI filters and their link information for the domain of the current user.
RELATED LINKS
SYNOPSIS
Gets WMI Filters in the domain.
SYNTAX
Get-WmiFilter [-Name] <String> [[-Domain] <String>] [-IncludeLinkInformation] [-Credential <PSCredential>]
[<CommonParameters>]
Get-WmiFilter [-Guid] <Guid> [[-Domain] <String>] [-IncludeLinkInformation] [-Credential <PSCredential>]
[<CommonParameters>]
Get-WmiFilter -All [[-Domain] <String>] [-IncludeLinkInformation] [-Credential <PSCredential>] [<CommonParameters>]
DESCRIPTION
The Get-WmiFilter cmdlet returns a specific WMI Filter object based on a name or GUID or returns all WMI Filters.
Optionally, link information for where each WMI filter is applied can be returned.
PARAMETERS
-Guid <Guid>
The GUID of the WMI Filter to get.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Name <String>
The "msWMI-Name" attribute of the WMI Filter to match.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-All [<SwitchParameter>]
Returns all WMI filters in the domain.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Domain <String>
The domain to perform the search on. This defaults to the domain of the current user.
Required? false
Position? 2
Default value [System.String]::Empty
Accept pipeline input? false
Accept wildcard characters? false
-IncludeLinkInformation [<SwitchParameter>]
If specified, information about where each WMI filter is applied is returned as well.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
Specifies a user account that has permission to perform this action. The default is the current user.
Type a user name, such as "User01" or "Domain01\\User01", or enter a PSCredential object, such as one generated
by the Get-Credential cmdlet. If you type a user name, you will be prompted for a password.
Required? false
Position? named
Default value [System.Management.Automation.PSCredential]::Empty
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
System.Guid
System.String
OUTPUTS
System.Management.Automation.PSObject[]
NOTES
AUTHOR: Michael Haken
LAST UPDATE: 1/4/2017
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-WmiFilter -All -Domain contoso.com
Gets all of the WMI Filters in contoso.com
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-WmiFilter -All -IncludeLinkInformation
Gets all of the WMI filters and their link information for the domain of the current user.
RELATED LINKS