Suspend-MsmqOutgoingQueue
Pauses outgoing queues.
Syntax
Default (Default)
Suspend-MsmqOutgoingQueue
-InputObject <OutgoingQueue[]>
[<CommonParameters>]
Description
The Suspend-MsmqOutgoingQueue cmdlet pauses outgoing queues. Specify queues to pause by using MsmqOutgoingQueue objects. This cmdlet returns the suspended queue objects.
Examples
Example 1: Suspend outgoing queues specified by name
PS C:\> Get-MsmqOutgoingQueue -Name "Order*" | Suspend-MsmqOutgoingQueue
This command gets all outgoing queues that have names hat begin with the string Order by using the Get-MsmqOutgoingQueue cmdlet. The command passes the results to the current cmdlet by using the pipeline operator. The current cmdlet suspends those queues.
Parameters
-InputObject
Specifies an array of MsmqOutgoingQueue objects. This cmdlet pauses outgoing queues that this parameter specifies. This parameter accepts pipeline input.
Parameter properties
| Type: | OutgoingQueue[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.