Get-CMAntimalwarePolicy

Gets antimalware policies for Endpoint Protection.

Syntax

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

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

Optional Parameters

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

Specifies the name of an antimalware policy.

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