I want to delete all message from Queue. How can I do it with Exchange Server 2007
Asked
Active
Viewed 1.1k times
2 Answers
2
This powershell command will do it.
Get-ExchangeServer | ?{$_.IsHubTransportServer -eq $true} | Get-Queue |
get-message | Remove-Message -withNDR $false

Sam Cogan
- 38,736
- 6
- 78
- 114
1
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)

DanBig
- 11,423
- 1
- 29
- 53
-
In Exchange 2010, When I select all messages, the NDR/NoNDR option is removed – jao Jan 30 '15 at 13:38