Get-CMDetectedMalware

Gets detected malware.

Syntax

Get-CMDetectedMalware
   -Collection <IResultObject>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-ThreatCategory <MalwareThreatCategory>]
   [-ThreatName <String>]
   [<CommonParameters>]
Get-CMDetectedMalware -CollectionId  [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-ThreatCategory ] [-ThreatName ] []
Get-CMDetectedMalware -CollectionName  [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-ThreatCategory ] [-ThreatName ] []
Get-CMDetectedMalware [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-ThreatCategory ] [-ThreatName ] []
Get-CMDetectedMalware [-DisableWildcardHandling] [-ForceWildcardHandling] -ThreatId 
 []

Description

The Get-CMDetectedMalware cmdlet gets detected malware.

Examples

Example 1: Get all detected malware

PS ABC:\> Get-CMDetectedMalware

This command gets all detected malware.

Example 2: Get all detected malware for a collection

PS ABC:\> Get-CMDetectedMalware -CollectionName "testCollection"

This command gets all detected malware for the collection named testCollection.

Example 3: Get all detected malware by threat name

PS ABC:\> Get-CMDetectedMalware -ThreatName "Virus:DOS/EICAR_Test_File"

This command gets all detected malware named Virus:DOS/EICAR_Test_File.

Required Parameters

-Collection

Specifies a collection object. To obtain a collection object, use the Get-CMCollection cmdlet.

Type:IResultObject
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-CollectionId

Specifies the ID of a collection.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CollectionName

Specifies the name of a collection.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ThreatId

Specifies the ID of a threat.

Type:String
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
-ThreatCategory

Specifies a malware threat category object. To obtain a malware threat category object, use the Get-CMMalwareThreatCategory cmdlet.

Type:MalwareThreatCategory
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ThreatName

Specifies the name of a threat.

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