Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

Message Queueing (MSMQ) Cmdlets

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. This reference topic for the information technology (IT) professional provides assistance in utilizing the Windows PowerShell cmdlets to script and automate tasks.

Microsoft Message Queuing (MSMQ)

This reference provides cmdlet descriptions and syntax for all MSMQ-specific cmdlets. It lists the cmdlets in alphabetical order based on the verb at the beginning of the cmdlet.

 

cmdlet Description

Clear-MSMQOutgoingQueue

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

Clear-MsmqQueue

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

Enable-MsmqCertificate

This cmdlet registers a certificate with Active Directory Domain Services.

Get-MsmqCertificate

This cmdlet returns an array of type System.Security.Cryptography.X509Certificates.X509Certificate.

Get-MsmqOutgoingQueue

This cmdlet returns an array of MsmqOutgoingQueue objects, each representing a transactional or non-transactional outgoing queue.

Get-MsmqQueue

This cmdlet returns an array of MsmqQueue objects, each of them representing an existing private, public or system queue.

Get-MsmqQueueACL

This cmdlet returns an array of MsmqQueueAcl objects for the specified queues.

Get-MsmqQueueManager

This cmdlet returns a QueueManager state info object that represents the local queue manager.

Get-MsmqQueueManagerACL

This cmdlet returns an array of MsmqQueueManagerAcl objects for the local queue manager.

Move-MsmqMessage

This cmdlet can be used to move Messages between subqueues of the same queue or between the main queue and one of its subqueues.

New-MsmqMessage

This cmdlet creates and returns a new System.Messaging.Message object with properties as specified by the parameters.

New-MsmqQueue

Creates a new queue.

Receive-MsmqQueue

Does a destructive read from a queue.

Remove-MsmqCertificate

Removes the specified personal certificate.

Remove-MsmqQueue

Deletes the specified queues.

Resume-MsmqOutgoingQueue

Resumes specified outgoing queues.

Send-MsmqQueue

Sends a test message to the specified queues.

Set-MsmqQueue

Sets queue properties.

Set-MsmqQueueACL

Modifies access rights to queues.

Set-MsmqQueueManager

Configures the properties of the specified queue manager.

Set-MsmqQueueManagerACL

Modifies access rights of the local queue manager.

Suspend-MsmqOutgoingQueue

Pauses the specified outgoing queues.

noteNote
To list all the cmdlets that are available, use the Get-Command -Module MsMq cmdlet.

For more information about, or for the syntax of, any of the cmdlets, use the Get-Help <cmdlet name> cmdlet, where <cmdlet name> is the name of the cmdlet that you want to research. For more detailed information, you can run any of the following cmdlets:

Get-Help <cmdlet name> -Detailed
Get-Help <cmdlet name> -Examples
Get-Help <cmdlet name> -Full

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