Installing and Uninstalling Message Queuing with Unattended Setup
Applies To: Windows Server 2008, Windows Vista
Starting with Windows Server 2008 R2 you can install and removing roles, role services and, features by using Windows PowerShell cmdlets for Server Manager. For more information, see Windows PowerShell cmdlets for Server Manager.
Unattended setup can also be performed on Windows Server 2008 R2 computers by using the servermanagercmd.exe utility. For more information about using servermanagercmd.exe to perform an unattended setup on Windows Server 2008 R2 computers, see Server Manager command-line tools, dism, pkgmgr, and ocsetup.
Using Windows PowerShell cmdlets for Server Manager to install Message Queuing
To run any Server Manager-related Windows PowerShell cmdlets, you must be running Windows PowerShell with elevated user rights. To do this task, click Start, click All Programs, click Accessories, click Windows PowerShell, right-click the Windows PowerShell shortcut, and then click Run as administrator.
Load the Server Manager module into each new Windows PowerShell session before working with Server Manager cmdlets. To do this task, type
Import-Module Servermanager, and then press Enter.
At the PowerShell command prompt enter the following command to install Message Queuing.
MSMQ Add-WindowsFeature MSMQ
To uninstall Message Queuing type
When installing Message Queuing (MSMQ) on Windows Server Core, you must install the individual MSMQ features that you require, such as Microsoft Message Queue (MSMQ) Server Core / MSMQ Services, MSMQ Triggers / Message Queuing Triggers, MSMQ Triggers / Message Queuing Triggers, Routing Service, and MSMQ DCOM Proxy / Message Queuing DCOM Proxy. You do so by specifying the individual features that you require when you run
Add-WindowsFeature, as shown in the following example.
Add-WindowsFeature msmq-server, msmq-triggers
Since Pragmatic General Multicast (PGM) is not supported by Windows Server Core, and Message Queuing relies on PGM for multicasting support, this feature is not supported on Windows Server Core.