Skip to content

Latest commit

 

History

History
98 lines (72 loc) · 2.23 KB

Clear-MSMQOutgoingQueue.md

File metadata and controls

98 lines (72 loc) · 2.23 KB
external help file Module Name ms.date online version schema title
Microsoft.Msmq.PowerShell.Commands.dll-Help.xml
MSMQ
10/30/2017
2.0.0
Clear-MSMQOutgoingQueue

Clear-MsmqOutgoingQueue

SYNOPSIS

Purges outgoing queues.

SYNTAX

Clear-MsmqOutgoingQueue -InputObject <OutgoingQueue[]> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Clear-MsmqOutgoingQueue cmdlet purges outgoing queues. Specify queues to purge by using MsmqOutgoingQueue objects. This cmdlet returns an MsmqOutgoingQueue object that represents the cleared outgoing queue.

EXAMPLES

Example 1

PS C:\>Get-MsmqOutgoingQueue -Name "Order*" | Clear-MsmqOutgoingQueue

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-InputObject

Specifies an array of MsmqOutgoingQueue objects. This cmdlet purges outgoing queues that this parameter specifies. This parameter accepts pipeline input.

Type: OutgoingQueue[]
Parameter Sets: (All)
Aliases: 

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

RELATED LINKS

Get-MsmqOutgoingQueue

Resume-MsmqOutgoingQueue

Suspend-MsmqOutgoingQueue