Purpose
This article describes procedures to enable and disable maintenance mode for Exchange mailbox servers that are not members of a DAG. This may be necessary in a variety of situations.
Procedure To Enable
-
To enable maintenance mode for a monitored Exchange mailbox server that is not a member of a DAG:
-
Launch Exchange Management Shell on the mailbox server
-
Drain active mail queues on the mailbox server with the following command
-
Set-ServerComponentState <ServerName> -Component HubTransport -State Draining -Requester Maintenance
-
Force the transport service to pick up the state change with the following command
-
Restart-Service MSExchangeTransport
-
Note: If this is a multi-role server, you must also run:
-
Restart-Service MSExchangeFrontEndTransport
-
Redirect messages pending delivery in the local queues to another mailbox server with the following command
-
Redirect--Message -Server <ServerName> -Target <MailboxServerFQDN>
Note: The target Server value must be the target server’s FQDN. The target server should not itself be in maintenance mode.
Place the server in maintenance mode with the following command:
- Set-ServerComponentState <ServerName> -Component ServerWideOffline -State Inactive -Requester Maintenance
12.To verify the server has been placed into maintenance mode, run:
Get-ServerComponentState <ServerName> | ft Component,State –Autosize
- All components should show “Inactive” except for Monitoring and RecoveryActionsEnabled .
Procedure to Disable
-
To disable maintenance mode for a non-DAG mailbox server:
-
Launch Exchange Management Shell on the mailbox server
-
Run the following command:
Set-ServerComponentState <ServerName> -Component ServerWideOffline -State Active -Requester Maintenance
- Force the transport service to pick up the state change with the following command
Restart-Service MSExchangeTransport
Note: If this is a multi-role server, you must also run:
-
Restart-Service MSExchangeFrontEndTransport
-
Verify that the server is out of maintenance mode with the following command:
Get-ServerComponentState <ServerName> | ft Component,State –Autosize
- All server components should show as “Active”
Applies to
This procedure has been tested on Exchange Server 2016.
Comments
0 comments
Please sign in to leave a comment.