How to Move Exchange Queue

If you need to move the Exchange queue , you can follow the steps below.

1-Suspend Message Queue
Get-Message -Server ExcSrv | Suspend-Message

2-Export Suspend Message
Get-Message -Server ExcSrv | ForEach-Object {$Temp="E:\Export\"+$_.InternetMessageID+".eml";$Temp=$Temp.Replace("<","");$Temp=$Temp.Replace(">","");Export-Message $_.Identity | AssembleMessage -Path $Temp}

3-It is sufficient to move the exported mails to the Replay folder to enable resending.
Path –> “Exchange Server\V15\TransportRoles\Replay”

Note : Run Exchange Management Shell as an Administrator .

Have a nice day!