skip to Main Content

Exchange setup can’t continue PowerShell has open files

We are updating Exchange by running the setup, and an error is showing. The error is showing that Exchange setup can’t continue PowerShell has open files. We are upgrading Exchange 2016 CU13 to Exchange 2016 CU16. Let’s have a look at why the error is showing and the solution to it.

Updates for Exchange Servers are important, and it’s recommended to update. Bugs get fixed, and new features get introduced. Who doesn’t like to see such great improvements for the system? Only this time, the Exchange setup failed, and an error occurs.

Run command prompt as administrator. Run the command to start the Exchange Cumulative Update.

C:\>E:\Setup.exe /IAcceptExchangeServerLicenseTerms /Mode:Upgrade

Microsoft Exchange Server 2016 Cumulative Update 16 Unattended Setup

Copying Files...
File copy complete. Setup will now collect additional information needed for installation.

Languages
Management tools
Mailbox role: Transport service
Mailbox role: Client Access service
Mailbox role: Unified Messaging service
Mailbox role: Mailbox service
Mailbox role: Front End Transport service
Mailbox role: Client Access Front End service

Performing Microsoft Exchange Server Prerequisite Check

    Configuring Prerequisites                                                                         COMPLETED
    Prerequisite Analysis                                                                             100%

Setup can't continue with the upgrade because the powershell (14240) has open files. Close the process, and then
restart Setup.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.ProcessNeedsToBeClosedOnUpgrade.aspx


The Exchange Server setup operation didn't complete. More details can be found in ExchangeSetup.log located in the
:\ExchangeSetupLogs folder.

The Exchange upgrade stopped, and the output is giving us the following error:

Setup can’t continue with the upgrade because the powershell (14240) has open files. Close the process, and then restart Setup.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.ProcessNeedsToBeClosedOnUpgrade.aspx

Why are we getting this error, and what is the solution for Exchange setup can’t continue PowerShell has open files?

Solution for Exchange setup can’t continue PowerShell has open files

Close any PowerShell or Exchange Management Shell sessions. A lot of administrators forget and run the update from Exchange Management Shell. Check if there are other users logged in on the system and log them off.

Remember to run Exchange setup from the command prompt (CMD).

Read more: Find Exchange version with PowerShell »

Conclusion

In this article, you learned why Exchange setup can’t continue because PowerShell has open files. The solution to this problem is to close all PowerShell and Exchange Management Shell sessions. After that, you can run the Exchange setup again.

Did you enjoy this article? You may also like Configure Internal and External URL in Exchange 2016. Don’t forget to follow us and share this article.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top