Install MSMQ via a Group Policy

msmqwindows-server-2008-r2

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?

Best Answer

Try this in a startup script:

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