Remove-CMWdacSetting

Delete a Microsoft Defender Application Control policy from the site.

Syntax

Remove-CMWdacSetting
      [-CMSettings] <CMSettings>
      [-Force]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [<CommonParameters>]

Description

Delete a Microsoft Defender Application Control policy from the site. Use Get-CMWdacSetting to get an existing policy object.

Examples

Example 1

This example gets an object by name and then removes it from the site.

Get-CMWdacSetting -Name "My App Control setting" | Remove-CMWdacSetting

Parameters

-CMSettings

Specify a Microsoft Defender Application Control policy object to remove. Use the Get-CMWdacSetting to get this object.

Type:CMSettings
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Run the command without asking for confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.ConfigurationManagement.PowerShell.Cmdlets.EP.SimplifiedSettings.CMSettings

Outputs

System.Object