Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5966867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:51:39+00:00 2026-05-22T19:51:39+00:00

Using C# and .NET 3.5, how can I get a listing of all outgoing

  • 0

Using C# and .NET 3.5, how can I get a listing of all outgoing queues in MSMQ? I found this article about it but as you can see below I do not have the COM entry for Microsoft Message Queue 3.0 Object Library…

I accidentally the Microsoft Message Queue 3.0 Object Library

So how can I get the current outgoing queue listing? I figured there must be a way since I can see them in Computer Management…

Computer Management + MSMQ

What can I do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:51:39+00:00Added an answer on May 22, 2026 at 7:51 pm

    Two good places to start I think would be these:

    http://msdn.microsoft.com/en-us/library/ms703173%28v=vs.85%29.aspx

    http://msdn.microsoft.com/en-us/library/ms711378%28v=vs.85%29.aspx

    I’ll see if I can work up some code.


    Perhaps not, those look old, still looking.


    Heres some WScript that will show them to you, still looking for .Net code:

    Dim Locator
    Set Locator = CreateObject("WbemScripting.SWbemLocator")
    Dim objs
    Set Service = Locator.ConnectServer(".", "root\cimv2")
    Set objs = Service.ExecQuery("Select * From Win32_PerfRawData_MSMQ_MSMQQueue")
    For Each object In objs
        WScript.Echo "Name: " & object.Name
    Next 
    

    using System.Management;
    namespace TestMSMQStuff
    {
        class Program
        {
    
            static void Main(string[] args)
            {
    
                System.Management.SelectQuery q = new SelectQuery("Select * From Win32_PerfRawData_MSMQ_MSMQQueue");
                ManagementObjectSearcher s = new ManagementObjectSearcher(q);
                foreach (var r in s.Get())
                {
                    Console.WriteLine(r.Properties["Name"].Value);
                }
            }
        }
    }
    

    Looks like all the outgoing queues start with “os:”

    Need to references System.Management and System.Management.Instrumentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using .NET's WebBrowser control, how can I get the entire HTML of the
Using log4net 1.2.11.0 w/ .NET, how can I get the RollingFileAppender to output UTC
When using ASP.Net routing, how can you get the RouteData from the code-behind? I
How I can get the content of the web page using ASP.NET? I need
How I can get the content of the web page using ASP.NET? I need
I can get this code to run in the interactive environment but it crashes
I know in ASP.NET I can get an item from a DropDownList by using
by using directshow.net i can able to record the video and with recording i
i want to record video through webcam using Directshow.Net.i can able to record the
How can I monitor instant messages received on gtalk using .NET? Basically, I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.