Just how to clear Exchange mail lines up making use of PowerShell

I required to clear a number of messages out of the mail queue today, and also assumed it would certainly be extremely wonderful to be able to quiz the line up (s) making use of Powershell. Any kind of manuscripts around?

Keep in mind: this is for SBS 2003, so no Exchange 2007 - yet as an upgrade is near, a 2007-only solution will certainly be simply great ...

0
2019-05-06 21:24:09
Source Share
Answers: 2
Get-ExchangeServer | ?{$_.IsHubTransportServer -eq $true} | Get-Queue | get-message | Remove-Message -withNDR $false
0
2019-05-12 02:00:55
Source

I do not recognize of a PowerShell manuscript that will certainly do it for Exchange 2003 (there might be one, simply can not locate it), with Exchange 2007 its really simple.

There is a manuscript here that will certainly clear the whole line up for you, making use of vbscript. Are you aiming to do that, or to remove certain e-mails?

0
2019-05-10 15:30:40
Source