Copy-CMWdacSetting

Make a copy of a Microsoft Defender Application Control policy object.

Syntax

Copy-CMWdacSetting
    [-WdacSettings] <CMWdacSettings>
    -Name <String>
    [-Description <String>]
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [<CommonParameters>]

Description

This cmdlet makes a copy of a Microsoft Defender Application Control policy object. All existing policies are included. Use the Get-CMWdacSetting to get this object.

Examples

Example 1: Copy an existing policy object

This example gets an existing Microsoft Defender Application Control policy object by name, and makes a copy.

Get-CMWdacSetting -Name "My App Control settings" | Copy-CMWdacSetting -Name "New App Control settings"

Parameters

-Description

Specify a description for the new Microsoft Defender Application Control policy object.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
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

-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

-Name

Specify a name for the new Microsoft Defender Application Control policy object.

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

-WdacSettings

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

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

Inputs

Microsoft.ConfigurationManagement.PowerShell.Cmdlets.EP.WDAC.CMWdacSettings

Outputs

Microsoft.ConfigurationManagement.PowerShell.Cmdlets.EP.WDAC.CMWdacSettings