TechNet
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Release-QuarantineMessage

 

Applies to: Exchange Online, Exchange Online Protection

Topic Last Modified: 2016-06-03

This cmdlet is available only in the cloud-based service.

Use the Release-QuarantineMessage cmdlet to release messages from quarantine in your cloud-based organization. You can release messages to all original recipients, or to specific recipients.

For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

Release-QuarantineMessage <COMMON PARAMETERS>

Release-QuarantineMessage -User <String[]> <COMMON PARAMETERS>

Release-QuarantineMessage -ReleaseToAll <SwitchParameter> <COMMON PARAMETERS>

COMMON PARAMETERS: -Identity <String> [-AllowSender <SwitchParameter>] [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-ReportFalsePositive <SwitchParameter>] [-WhatIf [<SwitchParameter>]]

This example releases the quarantined message <5c695d7e-6642-4681-a4b0-9e7a86613cb7@contoso.com> to an original recipient julia@contoso.com.

Get-QuarantineMessage -MessageID "<5c695d7e-6642-4681-a4b0-9e7a86613cb7@contoso.com>" | Release-QuarantineMessage -User julia@contoso.com

This example releases the quarantined message <5c695d7e-6642-4681-a4b0-9e7a86613cb7@contoso.com> to all original recipients.

Get-QuarantineMessage -MessageID "<5c695d7e-6642-4681-a4b0-9e7a86613cb7@contoso.com>" | Release-QuarantineMessage -ReleaseToAll

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Anti-spam" entry in the Feature permissions in Exchange Online topic.

 

Parameter Required Type Description

Identity

Required

System.String

The Identity parameter specifies the quarantined message that you want to release. The value of Identity is a unique message identifier that's used by the Get-QuarantineMessage and Release-QuarantineMessage cmdlets.

ReleaseToAll

Required

System.Management.Automation.SwitchParameter

The ReleaseToAll switch releases the quarantined message to all original recipients.You don't have to specify a value with this switch.

If you previously used the User parameter or the ReleaseToAll switch to release the quarantined message to some or all of the original recipients, those recipients are skipped when you use the ReleaseToAll parameter again. You don't have to specify a value with the ReleaseToAll switch.

You can't use the ReleaseToAll switch and the User parameter in the same command.

User

Required

System.String[]

The User parameter specifies the email address of the user to whom you want to release the quarantined message. You can specify multiple email addresses separated by commas.

The message is released only to the recipients specified by this parameter. If you want the message released to recipients who are also administrators, be sure to include them in the list.

If you previously used the ReleaseToAll switch to release the quarantined message to all original recipients, and you later release the message again with the User parameter, any original recipients you specify with the User parameter are skipped.

If you want to report the message as a false positive, don't specify the User parameter when you release the quarantined message.

AllowSender

Optional

System.Management.Automation.SwitchParameter

PARAMVALUE: SwitchParameter

Confirm

Optional

System.Management.Automation.SwitchParameter

The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on if the cmdlet requires confirmation before proceeding.

  • Destructive cmdlets (for example, Remove-* cmdlets) have a built-in pause that forces you to acknowledge the command before proceeding. For these cmdlets, you can skip the confirmation prompt by using this exact syntax: -Confirm:$false.

  • Most other cmdlets (for example, New-* and Set-* cmdlets) don't have a built-in pause. For these cmdlets, specifying the Confirm switch without a value introduces a pause that forces you acknowledge the command before proceeding.

Force

Optional

System.Management.Automation.SwitchParameter

PARAMVALUE: SwitchParameter

ReportFalsePositive

Optional

System.Management.Automation.SwitchParameter

The ReportFalsePositive switch sends a notification message indicating the specified message was not spam. This switch is only available for quarantined spam messages. You don't have to specify a value with this switch.

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf switch simulates the actions of the command. You can use this switch to view the changes that would occur without actually applying those changes. You don't need to specify a value with this switch.

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.

 
Show:
© 2016 Microsoft