Long story short...with the help of a consultant we moved from an on-prem exchange 2013 server to O365 a few years back. I thought that the on-prem server converted to a hybrid environment. As it turned out, I found out that it was not.
I have since setup an Exchange 2016 server in a hybrid environment and shut off the Exchange 2013 server. The Exchange 2013 server has been powered down for quite some time will not negative effects. I am now ready to remove the Exchange 2013 server from my environment.
I removed the mailboxes and whatnot on the Exchange 2013 server using powershell. I then went into the control panel to start uninstall Exchange 2013. It started to uninstall and then failed on Step 1 with the following error:
Error:
The following error was generated when "$error.Clear();
if ((Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\UnifiedMessagingRole\TeleLanguagePacks" -Name "zh-CN" -ea SilentlyContinue) -eq $null)
{
Uninstall-MsiPackage `
-ProductCode ([Microsoft.Exchange.Management.Deployment.UmLanguagePackUtils]::GetTeleProductCode("zh-CN")) `
-LogFile ([System.IO.Path]::Combine($RoleSetupLoggingPath, "UninstallSpeech-zh-CN.msilog"))
}
" was run: "Microsoft.Exchange.Configuration.Tasks.TaskException: Couldn't remove product with code bad2a75a-1708-47ba-a498-20890d2c78a7. Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel. Error code is 1638. ---> System.ComponentModel.Win32Exception: Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel
--- End of inner exception stack trace ---
at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
at Microsoft.Exchange.Management.Deployment.UninstallMsi.RemoveProductCode(Guid productCode)
at Microsoft.Exchange.Management.Deployment.UninstallMsi.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".
I canceled the installation and tried to run it again. Now it tells me:
An incomplete installation was detected. Run setup to complete Exchange installation.
Please help!!!