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, LetsExchange.blogspot.com, he regularly participates in the Exchange TechNet forums and is the author of the book “Microsoft Exchange Server 2013 High Availability.”

Share
Published by
Nuno Mota

Recent Posts

Put it into words: Developing a corporate communications charter

Employees spend a lot of time interacting with customers, management, and each other. A communications charter can save words —…

11 hours ago

6 cool new open source projects from Netflix, Facebook, Google, and more

Here are a few open source projects that have encouraged collaboration among developers and have resulted in higher quality software.

14 hours ago

Cisco patches serious flaw for ASR 9000 series routers

If your company employs the Cisco ASR 9000 series routers, you need to read on to find out about an…

14 hours ago

FBI IC3 report: Cybercrime caused massive financial damage in 2018

The FBI's IC3 has released its annual report on cybercrime and the data is not encouraging, especially for older Americans.

16 hours ago

eGobbler iOS malvertising campaign uses Chrome zero-day

An destructive malvertising campaign dubbed “eGobbler” leverages a zero-day exploit in the Chrome browser to attack iOS users.

1 day ago

Repair Hyper-V hosts and virtual machines with PowerShell

Hyper-V is reliable for hosting virtual machines, but things sometimes go wrong. Fortunately, PowerShell can repair Hyper-V hosts and fix…

1 day ago