none
Powershell script to get infomation about email-queue status RRS feed

  • Question

  • Hi There,

    Is there any Powershell script to get infomation about email-queue status for MS Exchange 2010 environment.

    Much appreciate for help.

     

    Thanks and Regards

    Nitish Agrawal

    Tuesday, November 22, 2011 5:29 AM

Answers

  • hi,

    here is a script that you want ;

    http://www.exchange-powershell.com/2010/06/03/script-check-message-queue/

    and commands for queue;

    View queue on server;
    Get-Queue
    Messages on queue;
    Get-Queue | Get-Message
    view queue on specified server
    Get-Queue -Server serveradı
    view queue on all transport servers
    Get-TransportServer | Get-Queue
    Message on the all transport servers queue
    Get-TransportServer | Get-Queue | Get-Message
    Suspending all the messages on queue
    Get-Queue | Get-Message | Suspend-Message
    Deleting messages on queue
    Get-Queue | Get-Message | Remove-Message

    regards,

     


    Mumin CICEK | www.cozumpark.com | Please click Vote As Helpful if it is helpful for you and Propose as Answer!!!
    • Marked as answer by Evan Liu Tuesday, November 29, 2011 1:36 PM
    Thursday, November 24, 2011 8:14 AM
  • Hello,

     

    You can use this to have a try (I tested in my lab):

     

    $HubTransports=Get-ExchangeServer | Where {$_.ServerRole -like "*Hub*"}

     

    $HubTransports| foreach{

     

    Get-Queue|ft

     

    }

     

    Thanks,

     

    Evan

    • Marked as answer by Evan Liu Tuesday, November 29, 2011 1:36 PM
    Thursday, November 24, 2011 8:01 AM

All replies

  • get-queue command is there which tells you the status of mails in queue

    MARK AS USEFUL/ANSWER IF IT DID

    Thanks
    Happiness Always
    Jatin
    jatinder2jatin@yahoo.ca
    Tuesday, November 22, 2011 5:39 AM
  • Hi Jatin,

    I am aware about the command but I am looking for a script which can get the data for all the servers in one shot.

    Tuesday, November 22, 2011 6:11 AM
  • make a script ... using that command only whats so tough Bro ...

    u need to use command to fint HTS server and then concatenate it with the above command and export the result in some file ...

    as such dont know if there is smthing ... like .. but i am sure not very tough


    MARK AS USEFUL/ANSWER IF IT DID

    Thanks
    Happiness Always
    Jatin
    jatinder2jatin@yahoo.ca
    Tuesday, November 22, 2011 6:32 AM
  • Hello,

     

    You can use this to have a try (I tested in my lab):

     

    $HubTransports=Get-ExchangeServer | Where {$_.ServerRole -like "*Hub*"}

     

    $HubTransports| foreach{

     

    Get-Queue|ft

     

    }

     

    Thanks,

     

    Evan

    • Marked as answer by Evan Liu Tuesday, November 29, 2011 1:36 PM
    Thursday, November 24, 2011 8:01 AM
  • hi,

    here is a script that you want ;

    http://www.exchange-powershell.com/2010/06/03/script-check-message-queue/

    and commands for queue;

    View queue on server;
    Get-Queue
    Messages on queue;
    Get-Queue | Get-Message
    view queue on specified server
    Get-Queue -Server serveradı
    view queue on all transport servers
    Get-TransportServer | Get-Queue
    Message on the all transport servers queue
    Get-TransportServer | Get-Queue | Get-Message
    Suspending all the messages on queue
    Get-Queue | Get-Message | Suspend-Message
    Deleting messages on queue
    Get-Queue | Get-Message | Remove-Message

    regards,

     


    Mumin CICEK | www.cozumpark.com | Please click Vote As Helpful if it is helpful for you and Propose as Answer!!!
    • Marked as answer by Evan Liu Tuesday, November 29, 2011 1:36 PM
    Thursday, November 24, 2011 8:14 AM