09-01-2014 06:35 AM
hi
i need to install MSMQ on 20 EV servers. Instead of doing manually on each one can I install via powershell script?
does anyone have such a script?
many thanks
Solved! Go to Solution.
09-01-2014 08:04 AM
I could be wrong, but you might be better off asking on the MSDN forums ... Just an idea.
09-01-2014 06:58 AM
Does this help:
http://serverfault.com/questions/554462/is-it-possible-to-enable-msmq-from-powershell-on-windows-8
09-01-2014 06:59 AM
Or this:
https://github.com/Particular/NServiceBus/issues/1687
<snip>
his worked for me on 2012
dism /Online /NoRestart /English /Enable-Feature /all /FeatureName:MSMQ-Server
the /all
means
automatically enable each parent feature from the list
@indualagarsamy tested on 2008 and the same issue occurred. however the /all
toggle also fixed it for her
</snip>
09-01-2014 07:04 AM
not really Rob but thanks
i have the poweshell code to install locally. I just need to be able to execute it remotely.
09-01-2014 07:14 AM
Okay, then please share what you have.
Saves everyone spending time looking for something that you don't need or want.
09-01-2014 07:30 AM
running this installs it only on the local server i am currently logged on with.
========
import-module servermanager
$server_names = Get-Content "C:\serverlist.txt"
Foreach ($server in $server_names)
{add-windowsfeature msmq-server}
============
09-01-2014 07:33 AM
According to this:
http://technet.microsoft.com/en-us/library/dd759202.aspx
Server Manager can't be used to install features remotely.
09-01-2014 07:59 AM
ok thanks Rob
so does anyone know of a way to solve my issue? Can i install MSMQ remotely on X number of machines ?
09-01-2014 08:04 AM
I could be wrong, but you might be better off asking on the MSDN forums ... Just an idea.