Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Clear-MSMQQueue

Clear-MSMQQueue

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

Syntax

Parameter Set: Default
Clear-MSMQQueue -InputObject <MessageQueue[]> [ <CommonParameters>]




Detailed Description

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

Parameters

-InputObject<MessageQueue[]>

A MessageQueue object that represents a queue that will be 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-MessageQueue –Name Order* | Clear-MessageQueue

 

 

 



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.