Get-CMAntiMalwarePolicy

Get-CMAntiMalwarePolicy

Gets antimalware policies for Endpoint Protection.

Syntax

Parameter Set: SearchByName
Get-CMAntiMalwarePolicy [-Name <String> ] [-Policy {Advanced | DefaultActions | DefinitionUpdates | ExclusionSettings | MicrosoftActiveProtectionService | RealTimeProtection | ScanSettings | ScheduledScans | ThreatOverrides}[] ] [-SecuredScopeNames <String> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMAntiMalwarePolicy -Id <String> [-Policy {Advanced | DefaultActions | DefinitionUpdates | ExclusionSettings | MicrosoftActiveProtectionService | RealTimeProtection | ScanSettings | ScheduledScans | ThreatOverrides}[] ] [-SecuredScopeNames <String> ] [ <CommonParameters>]

Detailed Description

The Get-CMAntiMalwarePolicy cmdlet gets the antimalware policies for System Center 2012 Endpoint Protection that apply to collections of client computers that are running the Microsoft System Center 2012 SP1 Configuration Manager agent. Antimalware policies are configuration settings that define how an antimalware agent operates on client computers.

Parameters

-Id<String>

Specifies the ID of an antimalware policy object.

Aliases

SettingsId

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of an antimalware policy.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Policy<PolicyType[]>

Specifies an array of policy settings for antimalware. Forces the command to run without asking for user confirmation.

-- Advanced
-- DefaultActions
-- DefinitionUpdates
-- ExclusionSettings
-- MicrosoftActiveProtectionService
-- RealTimeProtection
-- ScanSettings
-- ThreatOverrides

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SecuredScopeNames<String>

Specifies the names of secured scopes.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

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: Get all antimalware policies

This command gets all antimalware policies for Endpoint Protection in Configuration Manager.

PS C:\> Get-CMAntiMalwarePolicy

Example 2: Get antimalware policies by using a wildcard character

This command gets antimalware policies that have a name that begins with the letter D.

PS C:\> Get-CMAntiMalwarePolicy -Name "D*"

Example 3: Get antimalware policies by using an object ID

This command gets the antimalware policy that has the ID 16777217.

PS C:\> Get-CMAntiMalwarePolicy -Id "16777217"

New-CMAntimalwarePolicy

Set-CMAntiMalwarePolicy

Export-CMAntimalwarePolicy

Import-CMAntimalwarePolicy

Merge-CMAntimalwarePolicy

Remove-CMAntiMalwarePolicy