Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to enable MSMQ from PowerShell on Windows 8(.1)? If so, how does one do this?

share|improve this question
up vote 15 down vote accepted

Sure, when using the GUI, you would use the 'Windows Features' dialog through the control panel:

enter image description here

To do the same thing in PowerShell you can use the Enable-WindowsOptionalFeature cmdlet.

You need to know the internal feature names, to get these, run:

Get-WindowsOptionalFeature –Online  | ? FeatureName -match "msmq" | select FeatureName

you get something like this:


Now you can install the features you like:

Enable-WindowsOptionalFeature -Online -FeatureName MSMQ-HTTP
Enable-WindowsOptionalFeature -Online -FeatureName MSMQ-Server

Some features have dependencies on other features, to solve them, add the -All switch, which installs any dependencies automatically.

share|improve this answer
Thanks, worked perfectly as far as I can tell! – aknuds1 Nov 12 '13 at 22:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.