Place the Exchange Server into Maintenance Mode

                                           

Step-by-Step Guid

1. Set HubTransport Service to drain state. It will stop accepting any more messages.

[PS] C:\>Set-ServerComponentState -Identity "EX01" -Component HubTransport -State Draining -Requester Maintenance
Redirect any queued messages to next server for example EX02. The target server should not be in maintenance mode.
[PS] C:\>Redirect-Message -Server "EX01" -Target "EX02.example.local"
Confirm
Are you sure you want to perform this action?
Redirecting messages to "EX02.example.local".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): Y
2. Suspend Cluster Node
[PS] C:\>Suspend-ClusterNode "EX01"
Name      State  Type
----      -----  ----
EX01 Paused Node
3. Disable Database Copy Auto-Activation
[PS] C:\>Set-MailboxServer "EX01" -DatabaseCopyActivationDisabledAndMoveNow $true
[PS] C:\>Set-MailboxServer "EX01" -DatabaseCopyAutoActivationPolicy Blocked
After moving the active databases, we will review the transport queue.
Get-Queue
4. Put Server in Maintenance Mode
[PS] C:\>Set-ServerComponentState "EX01" -Component ServerWideOffline -State Inactive -Requester Maintenance
5. Verify the Server Is in Maintenance Mode
[PS] C:\>Get-ServerComponentState "EX01" | Select Component, State

Conclusion:
You have now learned how to place the Exchange Server into maintenance mode. It’s crucial to execute the required commands accurately. Preparing a list of PowerShell commands beforehand can be very helpful. Always check the output to confirm that everything is operating correctly.

Did you enjoy this article? You might also like "Remove the Exchange Server into Maintenance Mode" Don’t forget to follow us and share this article!

Comments