Hello Everyone
I have problem Uninstalling Exchange 2013 CU3, process stuck on removing language files and throws exception:
" was run: "Cannot remove the item at 'C:\Program Files\Microsoft\Exchange Server\V15\' because it is in use.".
At this moment Exchange 2013 is in coexistence with exchange 2010, bellow you can see what servers are deployed:
Exchange 2013
2 x Mailbox/CAS servers; 2 x CAS servers (both of them I want to uninstall and I have similar problem)
Exchange 2010
3 x Mailbox Server; 2 x Hub/CAS Servers.
I tried next troubleshooting steps:
- Repair installation of Exchange 2013 Cu3
- Added Mailbox Role to the same server and then tried to uninstall both roles but result was the same
- Tried to remove from "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v15\Language Packs\Client" registry Key but result was the same.(then returned from backup)
- I checked other Exchange Servers and those server are removed from exchange server list
- I checked active directory with ADSI edit in CN=Servers,CN=Exchange Administrative Group\* and there Cas server are also removed.
- In Exchangesetup.log there is nothing intereseing beside od the error that is thrown after uninstall
I would like to know:
how to check that exchange server is completely uninstalled from AD and if so can I just delete this exchange servers ?
Thank you in advance
Here is error that I recieve
PS C:\Install\Exchange 2012 CU3> .\setup /mode:uninstallWelcome to Microsoft Exchange Server 2013 Cumulative Update 3 Unattended Setup
Mailbox role: Mailbox service
Mailbox role: Unified Messaging service
Mailbox role: Client Access service
Mailbox role: Transport service
Client Access role: Front End Transport service
Client Access role: Client Access Front End service
Languages
Performing Microsoft Exchange Server Prerequisite Check
Configuring Prerequisites COMPLETED
Configuring Microsoft Exchange Server
Preparing Setup COMPLETED
Language Files FAILED
The following error was generated when "$error.Clear();
$regPath='HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall';
$PackageGUIDRegEx = "{DEDFFB[0-9a-fA-F]{2}-42EC-4E26-[0-9a-fA-F]{4}-430E86DF378C}";
$InstallPath = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\setup').MsiInstallPath
;
if(test-path ($regPath))
{
Write-ExchangeSetupLog -info ("Removing " + $RoleLanguagePackType + " Language Packs.");
Get-ChildItem ($regPath) | foreach{
if($_ -match "(?<ProductCode>$PackageGUIDRegEx)") {
$langPackPackageCode = $matches['ProductCode'];
if($langPackPackageCode -ne $null -and $langPackPackageCode.Length -ne 0) {
Write-ExchangeSetupLog -info ("Removing package $langPackPackageCode");
$language = $langPackPackageCode.Substring(20,4);
$logFilePath = [IO.Path]::Combine($RoleLogFilePath,"Uninstall") + '.' + $language +
'.' + "Client" + "." + $RoleLogDateTime + ".msilog";
uninstall-MsiPackage -ProductCode ($langPackPackageCode) -LogFile ($logFilePath);
};
};
};
Remove-Item -Path $InstallPath -Include *.Localized.js -Recurse
Remove-Item -Path $InstallPath -Include *.Localized.min.js -Recurse
Write-ExchangeSetupLog -info "Remove Language Packs completed.";
};
" was run: "Cannot remove the item at 'C:\Program Files\Microsoft\Exchange Server\V15\' because it is in use.".
The following error was generated when "$error.Clear();
$regPath='HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall';
$PackageGUIDRegEx = "{DEDFFB[0-9a-fA-F]{2}-42EC-4E26-[0-9a-fA-F]{4}-430E86DF378C}";
$InstallPath = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\setup').MsiInstallPath
;
if(test-path ($regPath))
{
Write-ExchangeSetupLog -info ("Removing " + $RoleLanguagePackType + " Language Packs.");
Get-ChildItem ($regPath) | foreach{
if($_ -match "(?<ProductCode>$PackageGUIDRegEx)") {
$langPackPackageCode = $matches['ProductCode'];
if($langPackPackageCode -ne $null -and $langPackPackageCode.Length -ne 0) {
Write-ExchangeSetupLog -info ("Removing package $langPackPackageCode");
$language = $langPackPackageCode.Substring(20,4);
$logFilePath = [IO.Path]::Combine($RoleLogFilePath,"Uninstall") + '.' + $language +
'.' + "Client" + "." + $RoleLogDateTime + ".msilog";
uninstall-MsiPackage -ProductCode ($langPackPackageCode) -LogFile ($logFilePath);
};
};
};
Remove-Item -Path $InstallPath -Include *.Localized.js -Recurse
Remove-Item -Path $InstallPath -Include *.Localized.min.js -Recurse
Write-ExchangeSetupLog -info "Remove Language Packs completed.";
};
" was run: "Cannot remove the item at 'C:\Program Files\Microsoft\Exchange Server\V15\' because it is in use.".
The Exchange Server setup operation didn't complete. More details can be found in ExchangeSetup.log located in the
<SystemDrive>:\ExchangeSetupLogs folder.
PS C:\Install\Exchange 2012 CU3>