Get-CMDetectedMalware

SYNOPSIS

Gets detected malware.

SYNTAX

ByName (Default)

Get-CMDetectedMalware [-ThreatName <String>] [-ThreatCategory <MalwareThreatCategory>]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>]

ByCollection

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

ByCollectionName

Get-CMDetectedMalware [-ThreatName <String>] -CollectionName <String> [-ThreatCategory <MalwareThreatCategory>]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>]

ByCollectionId

Get-CMDetectedMalware [-ThreatName <String>] -CollectionId <String> [-ThreatCategory <MalwareThreatCategory>]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>]

ByThreatId

Get-CMDetectedMalware -ThreatId <String> [-DisableWildcardHandling] [-ForceWildcardHandling]
 [<CommonParameters>]

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.

PARAMETERS

-Collection

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

Type: IResultObject
Parameter Sets: ByCollection
Aliases: 

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
Parameter Sets: ByCollectionId
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CollectionName

Specifies the name of a collection.

Type: String
Parameter Sets: ByCollectionName
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

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
Parameter Sets: ByName, ByCollection, ByCollectionName, ByCollectionId
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ThreatId

Specifies the ID of a threat.

Type: String
Parameter Sets: ByThreatId
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ThreatName

Specifies the name of a threat.

Type: String
Parameter Sets: ByName, ByCollection, ByCollectionName, ByCollectionId
Aliases: Name

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES

Unblock-CMDetectedMalware