Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Unblocks a threat.

Syntax

Unblock-CMThreat [-Force] -CollectionName <String> -ThreatName <String> [-Confirm] [-WhatIf] [<CommonParameters>]

Unblock-CMThreat [-Force] -ApplyAMPolicy <Boolean> -CollectionName <String> -ThreatName <String> [-Confirm] [-WhatIf] [<CommonParameters>]

Unblock-CMThreat [-Force] -ApplyAMPolicy <Boolean> -InputObject <IResultObject> [-Confirm] [-WhatIf] [<CommonParameters>]

Unblock-CMThreat [-Force] -ApplyAMPolicy <Boolean> -CollectionId <String> -ThreatId <String> [-Confirm] [-WhatIf] [<CommonParameters>]

Unblock-CMThreat [-Force] -CollectionId <String> -ThreatId <String> [-Confirm] [-WhatIf] [<CommonParameters>]

Unblock-CMThreat [-Force] -InputObject <IResultObject> [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Unblock-CMThreat cmdlet unblocks a threat.

Parameters

-ApplyAMPolicy [<Boolean>]

Indicates whether to apply anti-malware policy.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   True (ByPropertyName)
Accept wildcard characters?   false

-CollectionId [<String>]

Specifies a collection ID associated with a threat.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   True (ByPropertyName)
Accept wildcard characters?   false

-CollectionName [<String>]

Specifies a name of a collection associated with a threat.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   True (ByPropertyName)
Accept wildcard characters?   false

-Force [<SwitchParameter>]

Performs the action without a confirmation message.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   True (ByPropertyName)
Accept wildcard characters?   false

-InputObject [<IResultObject>]

Specifies a CMThreat object.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   True (ByPropertyName)
Accept wildcard characters?   false

-ThreatId [<String>]

Specifies an ID of a threat.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   True (ByPropertyName)
Accept wildcard characters?   false

-ThreatName [<String>]

Specifies a threat name.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   True (ByPropertyName)
Accept wildcard characters?   false

-Confirm [<SwitchParameter>]

Prompts you for confirmation before executing the command.

Required?   false
Position?   named
Default value?   false
Accept pipeline input?   false
Accept wildcard characters?   false

-WhatIf [<SwitchParameter>]

Describes what would happen if you executed the command without actually executing the command.

Required?   false
Position?   named
Default value?   false
Accept pipeline input?   false
Accept wildcard characters?   false

Input Type

Return Type

Notes

Examples

Example 1: Unblock a threat

PS> PS C:\>Unblock-CMThreat -CollectionName "Coll01" -ThreatName "Threat01"

This command unblocks a threat that Configuration Manager identifies by collection name and threat name.