none
Error Uninstalling Exchange 2016 RRS feed

  • Frage

  • Hey Guys,

    got this Error while Uninstalling Exchange at the Stage Language:

     Das Setup wird vorbereitet ... COMPLETED
    Z:\Setup.exe : Der folgende Fehler wurde generiert, als "$error.Clear(); 
    In Zeile:1 Zeichen:1
    + Z:\Setup.exe /mode:Uninstall /IAcceptExchangeServerLicenseTerms
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (Der folgende Fe...error.Clear(); :String) [], RemoteException
        + FullyQualifiedErrorId : NativeCommandError
     
                        $regPath='HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall';
                        
                        $PackageGUIDRegEx = "{9BBCB5[0-9a-fA-F]{2}-AAC3-4BF5-[0-9a-fA-F]{4
     Sprachdateien
    }-A4D51A19BF14}";
                        
                        $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 + '.' + "OwaPlus" + "." + $RoleLogDateTime + 
    ".msilog";
                                        uninstall-MsiPackage -ProductCode ($langPackPackageCode) -LogFile ($logFilePath);
                                    };
                                };
                            };
                            Get-Childitem -Path $InstallPath -include "*.Localized.js","*.Localized.min.js" -recurse | foreach ($_) {remove-item $_.fullname};
                            Write-ExchangeSetupLog -info "Remove Language Packs completed.";
                        };
                    
            " ausgefhrt wurde: "System.UnauthorizedAccessException: Zugriff verweigert ---> System.ComponentModel.Win32Exception: Zugriff verweigert
       --- Ende der internen Ausnahmestapelberwachung ---
       bei System.Management.Automation.Utils.NativeDirectoryExists(String path)
       bei System.Management.Automation.SessionStateInternal.IsItemContainer(CmdletProvider providerInstance, String path, CmdletProviderContext context)".

    Any idea what i could do ? Thanks in Advance

    Freitag, 15. Juni 2018 15:55

Alle Antworten

  • also tried manually:

    checked afterwards the registry, this GUID is not findable...

    Freitag, 15. Juni 2018 16:20
  • Windows holds all installers from installed software normally in the own installer-directory from windows (%WINDIR%). If the installer is cleared from this directory, you can't deiinstall on normal way.
    Some software has there own deinstalldirectory/exe's. Also here, if this is cleared you can't deinstall.

    You must find from everythere your installer which installed the package/software to uninstall.

    Freitag, 15. Juni 2018 16:42
  • FYI: We extracted the language registry keys from another Exchange 2016 and imported them. Further we restarted the server and reintegrated the .ISO in the explorer and tried it again. After that it worked.

    I'm not sure if that fixed it but it's a possibility that you should test.

    Just in case any other person has the same issues.

    • Als Antwort vorgeschlagen Einarsss Mittwoch, 27. Februar 2019 15:00
    Donnerstag, 21. Juni 2018 07:30
  • FYI: We extracted the language registry keys from another Exchange 2016 and imported them. Further we restarted the server and reintegrated the .ISO in the explorer and tried it again. After that it worked.

    I'm not sure if that fixed it but it's a possibility that you should test.

    Just in case any other person has the same issues.

    Thanks for this!

    To make it clearer

    I exported everything from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v15\Language Packs\* on a health exchange 2016 server
    rename the same registry key on the problem server
    Import the registry on the problem server
    reboot
    Mount the ISO and run: Setup /mode:uninstall /IacceptExchangeServerLicenseTerms


    • Bearbeitet Einarsss Mittwoch, 27. Februar 2019 15:00
    • Als Antwort vorgeschlagen Einarsss Mittwoch, 27. Februar 2019 15:00
    Mittwoch, 27. Februar 2019 12:18
  • Auch wenn der Thread schon etwas älter ist: ich hatte hier grad den exakt selben Fehler mit Exchange 2019 CU8.

    Lösungsweg war hier einfacher:

    - Server neu starten

    - das passende CU8 ISO mounten

    - setup /m:uninstall /IacceptExchangeServerLicenseTerms ausführen

    Und schon wurde die Deinstallation fortgesetzt. Irgendwelche Änderungen an der Registry waren nicht notwendig. Wären wohl auch nicht gegangen, denn beide zu deinstallierenden Server brachten die selbe Meldung. 


    Montag, 10. Mai 2021 11:35