Exchange 2013 components inactive

Installing a new Cumulative Update (CU) on the Exchange Server is always somehow stressful. If something goes wrong, you may be left with a corrupted/not working Exchange Server what means a financial loss to your company. To prevent this scenario from happening, make sure you always create an up-to-date backup copy before starting the CU installation process. If there are no obstacles, it is also worth trying to test the update of Exchange in a lab environment. This way you can measure and eliminate potential risk while performing the update in a production environment.

In this article, I will describe how changing Exchange 2013 components state may be helpful while implementing a new CU and how to set Inactive components Active when the installation of the Cumulative Update fails.

Before installing a Cumulative Update

Typically, before you start implementing a Cumulative Update on Exchange Server 2013, you run the server in the maintenance mode. This can be achieved with this cmdlet:

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

This command causes the Exchange services to stop so that users cannot use Exchange while the maintenance work is underway. To check the state of services, you can use this command:

Get-ServerComponentState <ServerName> | ft Component,State –Autosize

The screenshot below shows the result of this command:

Check the state of services whether is Active or Inactive.
All components should be inactive except for Monitoring and RecoveryActionsEnabled.

Problem during the installation process

Now, you are ready to start the installation of CU on the Exchange Server. In my case, however, the CU installer encounters a problem and stops the installation process:

Problem during installation of a cumulative Update.

What’s even worse, executing the below command does not change the component state to Active, leaving the server non-operational:

Set-ServerComponentState <ServerName> -Component ServerWideOffline -State Active -Requester Maintenance

The server restart does not help either:

Get-ServerComponentState <ServerName> | ft Component,State –Autosize

All Exchange components are Inactive.

As it come out, the problem is caused by the CU installer itself, which executes the following command:

Set-ServerComponentState <ServerName> -Component ServerWideOffline -State Active -Requester Functional

The installer used the –Requester Functional parameter, which, due to the installation failure, terminated the installation process and did not set the component state Active again. As it can be assumed, when performing a successful CU installation, the installer manages to set component states back to Active. In the example above, the installer failed at the very first step of installation.

The Exchange Server prioritizes the Inactive state over the Active one when two different Requesters execute the Set-SeverComponentState command. To set all component states Active, you need to run the below command for all Requesters that forced the Inactive state:

Set-ServerComponentState <ServerName> -Component ServerWideOffline -State Active

To view those Requesters, use the following cmdlet:

$Requesters = Get-ServerComponentstate –Identity <ServerName> -Component ServerWideOffline
$Requesters.LocalStates

View Requesters

The screenshot above shows that the Requester responsible for the Inactive state is Requester Functional. So in order to get the Exchange Server back to work, you need to use a command with Requester Functional:

Set-ServerComponentState <ServerName> -Component ServerWideOffline -State Active -Requester Functional

As soon as you run this command, all Exchange Server component states should be Active again.

If you notice that two components, Monitoring and RecoveryActionsEnabled, are still Inactive, activate them using the following commands:

Set-ServerComponentState <ServerName> -Component Monitoring -State Active -Requester Functional
Set-ServerComponentState <ServerName> -Component RecoveryActionsEnabled -State Active -Requester Functional

As you can see, updating the Exchange Server CU may be troublesome but it is always best practice to keep it up-to-date. Some time ago, sitting on Exchange 2013 CU4 caused problems for users of CodeTwo Exchange Rules Pro. One of the remedies was to update the Exchange Server version to CU5 or newer.

This KB article explains that problem in details.

Suggested reading

Tools for Microsoft 365

Recommended articles

How to migrate from Exchange Server 2016/2019 to Microsoft 365

How to migrate from Exchange Server 2016/2019 to Microsoft 365

Migrating Exchange data to the cloud is not rocket science – explore your options and launch the migration stress-free. As you may already know, Exchange Server 2016 and 2019 have reached end of life and are no longer officially supported by Microsoft. If your organization still uses either of these platforms to manage email, contacts, calendars, and tasks, keep in mind that: Your environment may become vulnerable to newly discovered security threats – Microsoft will no longer provide security updates for Exchange 2016 and 2019 (unless you’ve enrolled in the Extended Security Update program, which ends in October 2026). Your emails may get blocked – Microsoft has started to throttle and block emails sent from unsupported Exchange Server versions to Exchange Online (as I covered in this article). That said, migrating to a supported platform is now the only viable long-term option for keeping your organization’s email environment secure, supported, and fully operational. If your organization wants or needs to keep things on‑premises (and continue using Microsoft’s solutions for that), upgrading to Exchange Server Subscription Edition (SE) is the only path forward. But given Microsoft’s clear preference for its cloud services – evident in the faster rollout of new features and the many security capabilities available exclusively in Microsoft 365 (Office 365) – now is a great time to leave your on‑prem environment behind and migrate to Exchange Online as part of Microsoft 365. While switching over to a new platform might seem like a rough ride, I’ll show you some easy ways to follow when migrating mailboxes from Exchange Server 2016/2019 to Microsoft 365. How to prepare for email migration to Microsoft 365 Before you start the migration process, you need to make sure your environment is ready for the move. For this purpose, you can use this guide in the Microsoft 365 admin center – it will help you connect your organization to Microsoft 365 and integrate your existing user accounts with Microsoft Entra ID. Microsoft also recommends completing the steps below: Set up an SPF record to determine valid email sources for your organization’s Microsoft 365 domain. Set up the Exchange Online Protection service as a means of protection against spam and malware. If you’re behind on updates, make sure to install the latest Cumulative Update (CU). And here is my quick, less obvious Microsoft 365 migration checklist: Verify if your software will work in Microsoft 365 (especially when it comes to server software). Microsoft 365 migration might be the time you learn that there is crucial legacy software that half the company uses and which is hard to replace. Encourage the whole company to clean up projects. It’s much easier to do this before the migration and start fresh. Gather as much information about your on‑premises environment as possible. For example, you might need to recreate access roles and permissions from scratch in the cloud or set up mail flow rules. Without prior research, it will be much more difficult. Verify if you need to migrate service accounts. There can be a lot of them on‑premises and in most cases, you won’t need them after the move. Review mailbox size limits in Exchange Online before migration to see which licenses you’ll need and whic
New-ComplianceSearch: how to use the newer version of Search-Mailbox

New-ComplianceSearch: how to use the newer version of Search-Mailbox

Microsoft retired the Search-Mailbox cmdlet – now what? Discover how to use New-ComplianceSearch, its key advantages and how to make the switch seamlessly.
How to start remote PowerShell session to Exchange or Microsoft 365

How to start remote PowerShell session to Exchange or Microsoft 365

One of many features of the PowerShell command line tool is its ability to connect with and manage the Exchange Server remotely. The procedure described below applies to the classic on-prem Exchange server and to the Microsoft 365/Exchange Online version.

Comments

  1. avatar
    Brendan King says:

    Thanks, this worked getting mail flow working again after Exchange 2016 CU19 update bombed out at stage 7 of 12 and cripled the server.

  2. avatar
    Nathan Hammer says:

    Life saving post! Thank you very much for helping me fix something in under 30 minutes which could have taken me days!

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

CodeTwo sp. z o.o. sp. k. is a controller of your personal data.
See our Privacy Policy to learn more.