title: How to enable Windows features "MSMQ Server" and "MSMQ Server Core" using PowerShell?
body: <p>I am trying to enable Windows features &quot;MSMQ Server&quot; and &quot;MSMQ Server Core&quot; using PowerShell with the below command:</p>
  <pre><code>Enable-WindowsOptionalFeature -Online -FeatureName 'MSMQ-Server' -All -NoRestart
  </code></pre>
  <p>But the above command enables only the &quot;MSMQ Server&quot; and not &quot;MSMQ Server Core&quot;. I want a PowerShell command which enables both &quot;MSMQ Server&quot; and &quot;MSMQ Server Core&quot; feature. Any help on this will be highly appreciated.</p>
  <p>Thanks,
  Mani Athreya S</p>