Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 there a way to install MSMQ via Group policy in Windows Server 2008 R2?

Perhaps running ocsetup MSMQ-Container;MSMQ-Server as a startup script?

share|improve this question
up vote 1 down vote accepted

Try this in a startup script:

dism /online /Enable-Feature /FeatureName:MSMQ-Container /Norestart /Quiet
dism /online /Enable-Feature /FeatureName:MSMQ-Server /Norestart /Quiet

share|improve this answer
This works, but only need the second line -- first line says something along the lines of MSMQ-Container not being an option even though it comes out of the dism list. – Kyle Brandt Jan 12 '11 at 20:15

I suppose you have taken a look at MS TechNet Creating a new GPO applying to your OUs and including a logon script will get this done.

"Create a FirstLogonCommand that runs ServerManagerCmd.exe For Windows Server 2008, you can create a FirstLogonCommand that runs ServerManagerCmd.exe in your answer file that specifies the proper parameters for configuring MSMQ."

Let me know if you have any questions. of course recommended to apply to a new test gpo and test ou with 1 user/machine first.

share|improve this answer

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.