Clear-MSMQOutgoingQueue

Clear-MSMQOutgoingQueue

This cmdlet purges all outgoing queues that are represented by the supplied MsmqOutgoingQueue objects.

Syntax

Parameter Set: Default
Clear-MSMQOutgoingQueue -InputObject <OutGoingQueue[]> [ <CommonParameters>]

Detailed Description

This cmdlet purges all outgoing queues that are represented by the supplied MsmqOutgoingQueue objects. It returns an MsmqOutgoingQueue object that represents the cleared outgoing queue.

Parameters

-InputObject<OutGoingQueue[]>

A MsmqOutgoingQueue object that represents an outgoing queue that is purged. Accepts pipelined input.

Aliases

none

Required?

true

Position?

named

Default Value

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Examples

Usage Scenario

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