Import-CMAntimalwarePolicy

Imports an antimalware policy for Endpoint Protection.

Syntax

Import-CMAntimalwarePolicy
      [-PassThru]
      [-Path] <String>
      [-NewName <String>]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Import-CMAntimalwarePolicy cmdlet imports antimalware policies for System Center 2016 Endpoint Protection. When you enable Endpoint Protection, Microsoft System Center Configuration Manager applies a default antimalware policy to client computers. System Center Configuration Manager supplies a selection of predefined antimalware policy templates. You can import into these predefined templates into System Center Configuration Manager and assign them to System Center Configuration Manager client computers in your hierarchy. These templates are available in the folder <ConfigMgr Install Folder>\AdminConsole\XMLStorage\EPTemplates.

Examples

Example 1: Import an antimalware policy

PS C:\>Import-CMAntimalwarePolicy -ImportFilePath "\\Contosofs01\Mid\SCEP12_Standard_Desktop.xml"

This command imports the antimalware policy from the file named SCEP12_Standard_Desktop.xml.

Required Parameters

-Path
Type:String
Aliases:ImportFilePath
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NewName
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Returns the current working object. By default, this cmdlet does not generate any output.

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False