Announcement

Collapse
No announcement yet.

Error when trying to remove Exchange 2010 Mailbox Role

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error when trying to remove Exchange 2010 Mailbox Role

    Hi there,

    I'm in the midst of decommissioning an Exchange 2010 for one of my customers. There is another existing Exchange 2010 in place and all mailboxes, public folders etc have been moved over.

    However when it comes to the process of removing the mailbox role, it keeps failing with the following error. I've trawled through the internet, but can't seem to find someone with a similar error as mine.

    Thank you in advance, and appreciate any one advise on where I can look at.
    I'd like to avoid doing a manual removal of the Exchange server if possible..

  • #2
    Here are the error logs generated by the set up:

    [07/28/2017 04:38:30.0948] [1] The following 6 error(s) occurred during task execution:
    [07/28/2017 04:38:30.0948] [1] 0. ErrorRecord: Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] 0. ErrorRecord: Microsoft.Exchange.Configuration.Tasks.TaskExcepti on: Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] [ERROR] The following error was generated when "$error.Clear();
    if ([Environment]::OSVersion.Version.Major -ge 6)
    {
    if ((get-service wsbexchange* | where {$_.name -eq "wsbexchange"}))
    {
    $reg = join-path (join-path $env:SystemRoot system32) reg.exe;
    $servicecmd = join-path (join-path $env:SystemRoot system32) sc.exe;
    if ((get-service wsbexchange).Status -eq "Running")
    {
    Start-SetupProcess -Name:"$servicecmd" -Args:"stop wsbexchange";
    }
    Start-SetupProcess -Name:"$servicecmd" -Args:"delete wsbexchange";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\CLSID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\APPID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\APPID\wsbexchange.exe`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKLM\Software\Microsoft\windows nt\currentversion\WindowsServerBackup\Application Support\{76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKLM\Software\Microsoft\windows nt\currentversion\WSBAppExchangeHelper`" /f";
    }
    }
    " was run: "Process execution failed with exit code 1.".
    [07/28/2017 04:38:30.0948] [1] [ERROR] Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] 1. ErrorRecord: Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] 1. ErrorRecord: Microsoft.Exchange.Configuration.Tasks.TaskExcepti on: Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] [ERROR] The following error was generated when "$error.Clear();
    if ([Environment]::OSVersion.Version.Major -ge 6)
    {
    if ((get-service wsbexchange* | where {$_.name -eq "wsbexchange"}))
    {
    $reg = join-path (join-path $env:SystemRoot system32) reg.exe;
    $servicecmd = join-path (join-path $env:SystemRoot system32) sc.exe;
    if ((get-service wsbexchange).Status -eq "Running")
    {
    Start-SetupProcess -Name:"$servicecmd" -Args:"stop wsbexchange";
    }
    Start-SetupProcess -Name:"$servicecmd" -Args:"delete wsbexchange";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\CLSID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\APPID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\APPID\wsbexchange.exe`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKLM\Software\Microsoft\windows nt\currentversion\WindowsServerBackup\Application Support\{76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKLM\Software\Microsoft\windows nt\currentversion\WSBAppExchangeHelper`" /f";
    }
    }
    " was run: "Process execution failed with exit code 1.".
    [07/28/2017 04:38:30.0948] [1] [ERROR] Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] 2. ErrorRecord: Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] 2. ErrorRecord: Microsoft.Exchange.Configuration.Tasks.TaskExcepti on: Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] [ERROR] The following error was generated when "$error.Clear();
    if ([Environment]::OSVersion.Version.Major -ge 6)
    {
    if ((get-service wsbexchange* | where {$_.name -eq "wsbexchange"}))
    {
    $reg = join-path (join-path $env:SystemRoot system32) reg.exe;
    $servicecmd = join-path (join-path $env:SystemRoot system32) sc.exe;
    if ((get-service wsbexchange).Status -eq "Running")
    {
    Start-SetupProcess -Name:"$servicecmd" -Args:"stop wsbexchange";
    }
    Start-SetupProcess -Name:"$servicecmd" -Args:"delete wsbexchange";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\CLSID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\APPID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\APPID\wsbexchange.exe`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKLM\Software\Microsoft\windows nt\currentversion\WindowsServerBackup\Application Support\{76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKLM\Software\Microsoft\windows nt\currentversion\WSBAppExchangeHelper`" /f";
    }
    }
    " was run: "Process execution failed with exit code 1.".
    [07/28/2017 04:38:30.0948] [1] [ERROR] Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] 3. ErrorRecord: Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] 3. ErrorRecord: Microsoft.Exchange.Configuration.Tasks.TaskExcepti on: Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] [ERROR] The following error was generated when "$error.Clear();
    if ([Environment]::OSVersion.Version.Major -ge 6)
    {
    if ((get-service wsbexchange* | where {$_.name -eq "wsbexchange"}))
    {
    $reg = join-path (join-path $env:SystemRoot system32) reg.exe;
    $servicecmd = join-path (join-path $env:SystemRoot system32) sc.exe;
    if ((get-service wsbexchange).Status -eq "Running")
    {
    Start-SetupProcess -Name:"$servicecmd" -Args:"stop wsbexchange";
    }
    Start-SetupProcess -Name:"$servicecmd" -Args:"delete wsbexchange";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\CLSID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\APPID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\APPID\wsbexchange.exe`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKLM\Software\Microsoft\windows nt\currentversion\WindowsServerBackup\Application Support\{76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKLM\Software\Microsoft\windows nt\currentversion\WSBAppExchangeHelper`" /f";
    }
    }
    " was run: "Process execution failed with exit code 1.".
    [07/28/2017 04:38:30.0948] [1] [ERROR] Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] 4. ErrorRecord: Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] 4. ErrorRecord: Microsoft.Exchange.Configuration.Tasks.TaskExcepti on: Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0948] [1] [ERROR] The following error was generated when "$error.Clear();
    if ([Environment]::OSVersion.Version.Major -ge 6)
    {
    if ((get-service wsbexchange* | where {$_.name -eq "wsbexchange"}))
    {
    $reg = join-path (join-path $env:SystemRoot system32) reg.exe;
    $servicecmd = join-path (join-path $env:SystemRoot system32) sc.exe;
    if ((get-service wsbexchange).Status -eq "Running")
    {
    Start-SetupProcess -Name:"$servicecmd" -Args:"stop wsbexchange";
    }
    Start-SetupProcess -Name:"$servicecmd" -Args:"delete wsbexchange";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\CLSID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\APPID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\APPID\wsbexchange.exe`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKLM\Software\Microsoft\windows nt\currentversion\WindowsServerBackup\Application Support\{76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKLM\Software\Microsoft\windows nt\currentversion\WSBAppExchangeHelper`" /f";
    }
    }
    " was run: "Process execution failed with exit code 1.".
    [07/28/2017 04:38:30.0948] [1] [ERROR] Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0964] [1] 5. ErrorRecord: Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0964] [1] 5. ErrorRecord: Microsoft.Exchange.Configuration.Tasks.TaskExcepti on: Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0964] [1] [ERROR] The following error was generated when "$error.Clear();
    if ([Environment]::OSVersion.Version.Major -ge 6)
    {
    if ((get-service wsbexchange* | where {$_.name -eq "wsbexchange"}))
    {
    $reg = join-path (join-path $env:SystemRoot system32) reg.exe;
    $servicecmd = join-path (join-path $env:SystemRoot system32) sc.exe;
    if ((get-service wsbexchange).Status -eq "Running")
    {
    Start-SetupProcess -Name:"$servicecmd" -Args:"stop wsbexchange";
    }
    Start-SetupProcess -Name:"$servicecmd" -Args:"delete wsbexchange";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\CLSID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\APPID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKCR\APPID\wsbexchange.exe`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKLM\Software\Microsoft\windows nt\currentversion\WindowsServerBackup\Application Support\{76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}`" /f";
    Start-SetupProcess -Name:"$reg" -Args:"delete `"HKLM\Software\Microsoft\windows nt\currentversion\WSBAppExchangeHelper`" /f";
    }
    }
    " was run: "Process execution failed with exit code 1.".
    [07/28/2017 04:38:30.0964] [1] [ERROR] Process execution failed with exit code 1.
    [07/28/2017 04:38:30.0964] [1] [ERROR-REFERENCE] Id=MailboxComponent___05b48d0df742416f87cbe69d2775 1979 Component=EXCHANGE14:\Current\Release\Shared\Datac enter\Setup
    [07/28/2017 04:38:30.0964] [1] Setup is stopping now because of one or more critical errors.
    [07/28/2017 04:38:30.0964] [1] Finished executing component tasks.
    [07/28/2017 04:38:31.0213] [1] Ending processing Uninstall-MailboxRole
    [07/28/2017 04:38:35.0176] [0] End of Setup
    [07/28/2017 04:38:35.0176] [0] **********************************************
    Last edited by biggles77; 28th July 2017, 09:55. Reason: Removed BOLD and ITALICS.

    Comment


    • #3
      Without much luck in finding a fix to do a clean uninstall and also considering MS no longer offers support for Exchange 2010, I've proceeded to do a manual removal of the exchange server.


      Emails are flowing well now, so all is good. Thanks.

      Comment

      Working...
      X