Categories Exchange 2013

Exchange 2013 Maintenance Mode

With Exchange 2013, Microsoft introduced many new features to further improve Database Availability Groups, or DAGs. One of these new features is called Maintenance Mode and it enables administrators to designate a server as in-service or out-of-service by using the Set-ServerComponentState cmdlet. With Exchange 2010, administrators had to use the StartDagServerMaintenance.ps1 script or manually prepare a DAG member for maintenance.

As with the script, Maintenance Mode is used to tell Exchange that a particular server should not be available to service clients. In a mailbox server, an administrator will typically perform a switchover to another server (if the server to be put in maintenance mode is hosting active database copies) and then use the Set-MailboxServer and Set-ServerComponentState cmdlet to put it into maintenance mode, preventing the active copies from being activated and disabling the Transport services:

Set-ServerComponentState <> -Component HubTransport -State Draining -Requester Maintenance

Suspend-ClusterNode <>

Set-MailboxServer <> -DatabaseCopyActivationDisabledAndMoveNow $True (this can be done manually by moving the active database copy(ies) to another server)

Set-MailboxServer <> -DatabaseCopyAutoActivationPolicy Blocked

Set-ServerComponentState <> -Component ServerWideOffline -State Inactive -Requester Maintenance

This cmdlet also applies to Client Access Servers which, when placed into maintenance mode, stops the server from acknowledging load balancer heartbeats and disables all proxy services.

Set-ServerComponentState <> -Component ServerWideOffline -State Inactive -Requester Maintenance

Nuno Mota

Nuno Mota is an Exchange MVP working as a Microsoft Messaging Specialist for a financial institution. He is passionate about Exchange, Lync, Active Directory, PowerShell, and Security. Besides writing his personal Exchange blog,, he regularly participates in the Exchange TechNet forums and is the author of the book “Microsoft Exchange Server 2013 High Availability.”

Published by
Nuno Mota

Recent Posts

Review: Web app delivery controller Kemp Application Experience

Kemp Application Experience provides load balancing, monitoring, and management services for web apps. Here is our review.

16 hours ago

Android cryptomining botnet is the new bad kid on the block

A newly found Android cryptomining botnet that uses a vulnerability to spread malware via SSH has InfoSec researchers alarmed.

21 hours ago

7 office communication tools that reduce your team’s dependence on email

Organizations need office communication tools that are more useful than email and bring collaboration, project management, and bug tracking under…

24 hours ago

‘Obsolete’ technologies that still have a place in the modern world

The world is filled with tech that many people consider to be extinct. But some of these “obsolete” technologies are…

4 days ago

It’s not rocket science: NASA unit hobbled by amateurish phishing attack

NASA’s Jet Propulsion Laboratory, no stranger to cybersecurity problems, found some outgoing email blocked after employees fell for a phishing…

4 days ago

Linux Certified System Administrator exam: User and group management

The Linux Certified System Administrator exam can be an important career step. Here’s a close look at what is covered…

4 days ago