< Back
Set-GPWmiFilterAssignment
Post
NAME Set-GPWmiFilterAssignment
SYNOPSIS
Assigns WMI Filters to GPOs.
SYNTAX
Set-GPWmiFilterAssignment [-Policy] <Object> [-Filter] <Object> [[-Server] <String>] [[-Credential]
<PSCredential>] [-EnableException] [<CommonParameters>]
DESCRIPTION
Assigns WMI Filters to GPOs.
PARAMETERS
-Policy <Object>
The Group Policy Object to modify.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Filter <Object>
The Filter to Apply.
Required? true
Position? 2
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? 3
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? 4
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
<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 -Name '01_A_OU_1' | Set-GPWmiFilterAssignment -Filter 'Windows 10'
Assigns the WMI Filter "WIndows 10" to the GPO "01_A_OU_1"
RELATED LINKS
SYNOPSIS
Assigns WMI Filters to GPOs.
SYNTAX
Set-GPWmiFilterAssignment [-Policy] <Object> [-Filter] <Object> [[-Server] <String>] [[-Credential]
<PSCredential>] [-EnableException] [<CommonParameters>]
DESCRIPTION
Assigns WMI Filters to GPOs.
PARAMETERS
-Policy <Object>
The Group Policy Object to modify.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Filter <Object>
The Filter to Apply.
Required? true
Position? 2
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? 3
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? 4
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
<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 -Name '01_A_OU_1' | Set-GPWmiFilterAssignment -Filter 'Windows 10'
Assigns the WMI Filter "WIndows 10" to the GPO "01_A_OU_1"
RELATED LINKS