Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Clear-MSMQueue

Clear-MSMQueue

pscx.dll

Synopsis

PSCX Cmdlet: Purges all messages from a queue

Syntax

Clear-MSMQueue [-Path] [<CommonParameters>]

Clear-MSMQueue [-Name] [-MachineName] [-Private] [<CommonParameters>]

Clear-MSMQueue [-Queue] [<CommonParameters>]

Detailed Description

Purges all messages from a queue

Parameters

-Name <String>

Aliases

None

Required?

false

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-MachineName <String>

The name of the computer where the Message Queuing queue is located

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Path <String>

The queue's path

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Private <SwitchParameter>

The visibility of the queue

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Queue <MessageQueueInfo>

MessageQueueInfo object holding the message queue information

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- EXAMPLE 1 --------------------------