Import-CMAntimalwarePolicy

Import-CMAntimalwarePolicy

Imports an antimalware policy for Endpoint Protection.

Syntax

Parameter Set: Import
Import-CMAntimalwarePolicy -ImportFilePath <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

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

Parameters

-ImportFilePath<String>

Specifies the Universal Naming Convention (UNC) path of the policy file to import.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Import an antimalware policy

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

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

Get-CMAntiMalwarePolicy

Set-CMAntiMalwarePolicy

New-CMAntimalwarePolicy

Remove-CMAntiMalwarePolicy

Export-CMAntimalwarePolicy

Merge-CMAntimalwarePolicy