MSMQ Overview & Installation

Overview

Microsoft Message Queuing (MSMQ) is a component of the Windows operating system that allows cooperating applications to send and receive messages to each other, even if the intended recipient application is not running or the computer on which the sender or recipient application is running is disconnected from the network. Messages are stored and forwarded by MSMQ until they reach the destination queue. Later, when a recipient application runs, it can retrieve the messages from the queue. MSMQ de-couples sender and recipient applications so they do not need to run at the same time. Message Queuing provides built-in enhanced security, transaction support, and other features.

MSMQ is useful when custom applications need to communicate reliably across potentially unreliable or occasionally connected networks. MSMQ is also useful as a persistent storage mechanism for a list of items. For example, a server-based application could use MSMQ to store queued orders that would be submitted as a batch to an order-processing system at the end of the day. MSMQ is also the underpinning infrastructure for reliable messaging in Windows Communication Foundation, the next version of the client operating system.

Installation

MSMQ is available as a component of Windows is included in future server versions of Windows. Because Message Queuing is a component of Windows, its use is covered by the Windows license. If you have a valid license to use Windows, then you can access MSMQ.

To install MSMQ on Windows 10/11

  1. In Windows, open Control Panel.
  2. Under Programs, select Uninstall a program.
  3. In the left pane,  select Turn Windows features on or off.
  4. In the Windows Features screen, expand Microsoft Message Queue (MSMQ) Server and then select all available components.
  5. Select OK to install all necessary MSMQ components.

  6. You may need to restart your computer to complete the installation.

To install MSMQ on Windows Server 2012/2012 R2, 2016, 2019, and 2022

  1. In Windows Server, open Control Panel.
  2. Select Programs and Features.
  3. In the left pane, select Turn Windows features on or off. This launches the Server Manager.
  4. In the Add Roles and Features Wizard, select Next.
  5. Select Role-based or feature-based installation, and then select Next.
  6. Select the desired server, and then select Next.
  7. Select the desired server roles, and then select Next.
  8. Under Features, expand Message Queuing, and then expand Message Queuing Services.
  9. Select all available Message Queuing components, and then select Next.
  10. Select Install to install the Message Queuing components.
  11. You may need to restart the destination server to complete the installation.

To install MSMQ on Windows Server 2008 R2 SP1

  1. In Windows Server, open Control Panel
  2. Double-click Add or Remove Programs.
  3. In the left pane, select Add/Remove Windows Components.
  4. In the Windows Components wizard, select Application Server, and then select Details.
  5. Select Message Queuing, and then select OK.
  6. Select Next to complete the installation.
  7. In the Control Panel, double-click Administrative Tools, and then double-click Computer Management.
  8. Expand Services and Applications, and then select Services.
  9. In the services list on the right side (not in the folder in the tree view), right-click Message Queuing, and then select Properties.
  10. Select the Recovery tab, set the first, second, and subsequent failures to Restart the service, and then select OK.