How to determine if MSMQ 2.0 is installed in Workgroup or Directory mode

Article translations Article translations
Article ID: 248500 - View products that this article applies to.
This article was previously published under Q248500
Expand all | Collapse all

SUMMARY

There are two main ways to set up Microsoft Message Queue Server (MSMQ) 2.0 on a Windows 2000 computer - Workgroup or Directory mode. This is determined when configuring MSMQ for the first time. To determine whether your MSMQ 2.0 is configured in Workgroup or Directory mode, check the following registry subkey:
HKLM\SOFTWARE\Microsoft\MSMQ\Parameters
A value named "Workgroup" with a value of 1 (0x1) indicates that MSMQ 2.0 was installed in Workgroup mode.

MORE INFORMATION

When MSMQ is being installed you may find a dialog box which displays as follows:
Setup did not locate a server running Message Queuing that provides directory services. Choose if Message Queuing will use a directory service:
(O) Message Queuing will access a directory service
....
(O) Message Queuing will not access a directory service
Message Queuing on this computer will only support creation of private queues and direct connections with other computers running Message Queuing.
If the second option ("Message Queuing will not access a directory service") was selected, then MSMQ is configured in Workgroup mode, and the registry key earlier displays "0x1" as the value.

Also, when in Workgroup mode, if you attempt to browse the public queues, you get the following error message:
Message Queuing Service
Unable to display all public queues. Only public queues cached locally can be displayed.
Error: The operation is not supported for a WORKGROUP installation computer
You can also use the MSMQ 2.0 Administration objects to determine this programmatically. The IsDSEnabled property of the MSMQApplication object returns a nonzero value if MSMQ is installed in Directory mode, as shown in the following code:
If MSMQApplication.IsDSEnabled Then MsgBox "I am in Directory mode"
				

REFERENCES

For detailed information about MSMQ 2.0 configuration and development, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/ms711472.aspx

Properties

Article ID: 248500 - Last Review: July 27, 2007 - Revision: 4.0
APPLIES TO
  • Microsoft Windows 2000 Server
Keywords: 
kbcomplusqc kbhowto KB248500

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com