Domanda

I have a server with a request queue and a client with a responsive queue. I want to install MSMQ pragmatically on client as well as on server machine i.e. not by manually going to Server Manager/Add window's features.

È stato utile?

Soluzione

You can start

dism.exe /Online /Enable-Feature /FeatureName:MSMQ-Server /all  

as a process using:

System.Diagnostics.Process.Start()

If you need any aditionally Msmq features, you can find list this by doing:

dism.exe /online /get-features | Find "MSMQ"

which gives you something like:

Feature Name : MSMQ-Container
Feature Name : MSMQ-Server
Feature Name : MSMQ-Triggers
Feature Name : MSMQ-ADIntegration
Feature Name : MSMQ-HTTP
Feature Name : MSMQ-Multicast
Feature Name : MSMQ-DCOMProxy
Feature Name : WCF-MSMQ-Activation45
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top