Import-CMAntimalwarePolicy

Imports an antimalware policy for Endpoint Protection.

Syntax

Import-CMAntimalwarePolicy
      [-Path] <String>
      [-Confirm]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-PassThru]
      [-WhatIf]
      [<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
Required:True
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
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

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

Indicates that wildcard handling is enabled.

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

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Required:False
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
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False