Output Receive Connector Settings to a Text File
Get-ReceiveConnector <ReceiveConnectorName> | Format-List | Out-File "X:\FilePath\Receive-Connector.txt"
Create a New Receive Connector and Copy the Remote IP Ranges from an Existing Receive Connector on Another Hub Server
New-ReceiveConnector <ReceiveConnectorName> -Server <ServerName> -Bindings 0.0.0.0:25 -RemoteIPRanges ( Get-ReceiveConnector "<ServerName>\<ReceiveConnectorName>" ).RemoteIPRanges
List the Email Queues
get-queue | sort MessageCount -descending
List the Messages in a Queue
get-queue <TransportServer>\<queueNumber> | get-message | ft -auto
Remove All Messages from a Queue without Sending an NDR
remove-message -filter {queue -eq "<TransportServer>\<queueNumber>"} -withndr $false -confirm:$false
Retry All Queues with a Status of Ready
Retry-Queue -Filter {Status -eq "Ready"} -Server <ServerName> -Resubmit $true