-
Notifications
You must be signed in to change notification settings - Fork 0
Remove SudoPreferenceRule
dscbot edited this page Sep 20, 2026
·
1 revision
Removes registered sudo preference rules.
Remove-SudoPreferenceRule -Executable <String> -ParameterFilterRule <Object>
[<CommonParameters>]
Remove-SudoPreferenceRule [<CommonParameters>]
Remove-SudoPreferenceRule [-All] [<CommonParameters>]
Removes rules by executable and filter, by internal index, or clears every registered rule.
Remove-SudoPreferenceRule -Executable 'dpkg' -ParameterFilterRule '*'
Removes wildcard sudo rules registered for dpkg.
Removes every registered sudo preference rule.
Type: SwitchParameter
Parameter Sets: All
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the executable whose matching rules should be removed.
Type: String
Parameter Sets: ByValue
Aliases: Command
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseSpecifies the exact script block or wildcard filter to remove.
Type: Object
Parameter Sets: ByValue
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.