Page 1 of 1

Delivery Queue

Posted: 2020-03-25 19:12
by vinoji2005
Hi Team,

I'm looking at the script for getting delivery queue detail using PowerShell script. I did search in google but I'm not able to find any of script.If someone could you please helpe me

Regards,
Vinoth.S

Re: Delivery Queue

Posted: 2020-03-26 14:46
by palinka
vinoji2005 wrote:
2020-03-25 19:12
Hi Team,

I'm looking at the script for getting delivery queue detail using PowerShell script. I did search in google but I'm not able to find any of script.If someone could you please helpe me

Regards,
Vinoth.S
You can try this:

Code: Select all

$hMSAdminPass = "supersecretpasssword"
$hMS = New-Object -COMObject hMailServer.Application
$hMS.Authenticate("Administrator", $hMSAdminPass) | Out-Null
$hMSDeliveryQueue = $hMS.Status.UndeliveredMessages()
$hMSDeliveryQueue
I tried it but I don't have anything in my queue so I can't say if it works or not. It comes up empty for me, but it did something.