< Back
Clear-GPWmiFilterAssignment
Post
NAME Clear-GPWmiFilterAssignment
SYNOPSIS
Clears a GPO of its assigned WMI Filter.
SYNTAX
Clear-GPWmiFilterAssignment [-Policy] <Object> [[-Server] <String>] [[-Credential] <PSCredential>]
[-EnableException] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Clears a GPO of its assigned WMI Filter.
PARAMETERS
-Policy <Object>
The name of the GPO to clear of its assigned WMI Filter.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Server <String>
The server to contact.
Specify the DNS Name of a Domain Controller.
Required? false
Position? 2
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? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-EnableException [<SwitchParameter>]
This parameters disables user-friendly warnings and enables the throwing of exceptions.
This is less user friendly, but allows catching exceptions in calling scripts.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
If this switch is enabled, no actions are performed but informational messages will be displayed that explain
what would happen if the command were to run.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
If this switch is enabled, you will be prompted for confirmation before executing any operations that change
state.
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-GPO -All | Clear-GPWmiFilterAssignment
Clear all WMI Filters from all GPOs.
RELATED LINKS
SYNOPSIS
Clears a GPO of its assigned WMI Filter.
SYNTAX
Clear-GPWmiFilterAssignment [-Policy] <Object> [[-Server] <String>] [[-Credential] <PSCredential>]
[-EnableException] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Clears a GPO of its assigned WMI Filter.
PARAMETERS
-Policy <Object>
The name of the GPO to clear of its assigned WMI Filter.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Server <String>
The server to contact.
Specify the DNS Name of a Domain Controller.
Required? false
Position? 2
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? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-EnableException [<SwitchParameter>]
This parameters disables user-friendly warnings and enables the throwing of exceptions.
This is less user friendly, but allows catching exceptions in calling scripts.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
If this switch is enabled, no actions are performed but informational messages will be displayed that explain
what would happen if the command were to run.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
If this switch is enabled, you will be prompted for confirmation before executing any operations that change
state.
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-GPO -All | Clear-GPWmiFilterAssignment
Clear all WMI Filters from all GPOs.
RELATED LINKS