Deleting Stale MSMQ Active Directory Objects

[Sharing some information that comes in handy internally]

If you have installed the MSMQ AD integration feature on a domain-joined machine but are unable to see public queues then you may have an orphaned MSMQ object in Active Directory. This is a common occurance in test labs where machines are reimaged and rejoined to the same domain without uninstalling MSMQ.

The following articles have the required resolution steps under the section titled “Remove stale Active Directory objects”:

Event ID 2116 — Active Directory Integration Configuration
Event ID 2164 — Message Queuing Functioning in Domain Mode

[[Edited February 19th, 2010]]

A workaround to avoid orphaning the object in the first place is documented here: 

A Message Queuing 4.0-based server runs in Workgroup mode after you install the Message Queuing Active Directory Domain Services Integration feature

In “More Information” the article explains that it is necessary to use two steps for uninstalling MSMQ 4.0:

  1. Uninstall Active Directory Domain Services Integration first
  2. Uninstall the rest of MSMQ second