Get-CMAntimalwarePolicy

Gets antimalware policies for Endpoint Protection.

Syntax

Get-CMAntimalwarePolicy
   -Id <String>
   [-Policy <PolicyType[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMAntimalwarePolicy
   [-Name <String>]
   [-Policy <PolicyType[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

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

Examples

Example 1: Get all antimalware policies

PS C:\> Get-CMAntiMalwarePolicy

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

Example 2: Get antimalware policies by using a wildcard character

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

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

Example 3: Get antimalware policies by using an object ID

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

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

Required Parameters

-Id

Specifies the ID of an antimalware policy object.

Type:String
Aliases:SettingsId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-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
-Name

Specifies the name of an antimalware policy.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Policy

Specifies an array of policy settings for antimalware. The acceptable values for this parameter are:

  • Advanced
  • DefaultActions
  • DefinitionUpdates
  • ExclusionSettings
  • MicrosoftActiveProtectionService
  • RealTimeProtection
  • ScanSettings
  • ThreatOverrides
Type:PolicyType[]
Parameter Sets:ScheduledScans, ScanSettings, DefaultActions, RealTimeProtection, ExclusionSettings, Advanced, ThreatOverrides, MicrosoftActiveProtectionService, DefinitionUpdates
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False