Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to delete all message from Queue. How can I do it with Exchange Server 2007

share|improve this question

2 Answers 2

You can also open the queue in Exchange Management Console, go to the Toolbox and open the Queue Viewer. Once there, select all messages and click on the Remove option of your choice on the right. (With, or without NDR)

share|improve this answer
    
In Exchange 2010, When I select all messages, the NDR/NoNDR option is removed –  jao Jan 30 at 13:38

This powershell command will do it.

Get-ExchangeServer | ?{$_.IsHubTransportServer -eq $true} | Get-Queue | 
get-message | Remove-Message -withNDR $false
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.