How to change Msmq configuration from workgroup mode to domain mode?

mkus picture mkus · Feb 4, 2010 · Viewed 31k times · Source

There is a public queue named queue1 on machine A. I want to send messages to this queue from machine B. In order to achieve this, I wrote that c# code.

if (MessageQueue.Exists("machineA\queue1"))
{
    label1.Text = "queue found";
}
else
{
    label1.Text = "queue could not be found";
}

But Exists() method return false on machine B. The same code works well on machine C.

I found somethings related with msmq domain mode and workgroup mode. I think that msmq installed in workgoup mode on machine B.

How can I change this configuration from workgroup mode to domain mode?

Answer

engin picture engin · Jul 21, 2011

HKEY_LOCAL_MACHINE\Software\Microsoft\MSMQ\Parameters\

Check the data for the REG_DWORD workgroup. Is it 1 or 0?

  • 1 is workgroup mode.
  • 0 is AD mode