cancel
Showing results for 
Search instead for 
Did you mean: 

MSMQ query

GTK
Level 6

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

1 ACCEPTED SOLUTION

Accepted Solutions

Rob_Wilcox1
Level 6
Partner

I could be wrong, but you might be better off asking on the MSDN forums ... Just an idea.

Working for cloudficient.com

View solution in original post

8 REPLIES 8

Rob_Wilcox1
Level 6
Partner

Does this help:

 

http://serverfault.com/questions/554462/is-it-possible-to-enable-msmq-from-powershell-on-windows-8

Working for cloudficient.com

Rob_Wilcox1
Level 6
Partner

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>

Working for cloudficient.com

GTK
Level 6

not really Rob but thanks

 

i have the poweshell code to install locally. I just need to be able to execute it remotely.

Rob_Wilcox1
Level 6
Partner

Okay, then please share what you have.

Saves everyone spending time looking for something that you don't need or want.

Working for cloudficient.com

GTK
Level 6

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}

 

============

Rob_Wilcox1
Level 6
Partner

According to this:

http://technet.microsoft.com/en-us/library/dd759202.aspx

Server Manager can't be used to install features remotely.

Working for cloudficient.com

GTK
Level 6

ok thanks Rob

 

so does anyone know of a way to solve my issue? Can i install MSMQ remotely on X number of machines ?

Rob_Wilcox1
Level 6
Partner

I could be wrong, but you might be better off asking on the MSDN forums ... Just an idea.

Working for cloudficient.com