Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you try to uninstall Exchange Server 2007: "Process execution failed with exit code 5"


View products that this article applies to.

Symptoms

When you try to uninstall Microsoft Exchange Server 2007 from a server, the process does not successfully finish, and you receive an error message that resembles the following:
Process execution failed with exit code 5
Additionally, the following Error event is logged in the Application log:

Event Type: Error
Event Source: MSExchangeSetup
Event Category: Microsoft Exchange Setup
Event ID: 1002
Description:
Exchange Server component Mailbox Role failed. Error: Error: Process execution failed with exit code 5.

↑ Back to the top


Cause

This problem occurs because the DiagnosticCmdletController.dll file is unexpectedly unregistered before you try to uninstall Exchange Server 2007.

↑ Back to the top


Resolution

To resolve this problem, follow these steps:
  1. Click Start, point to Programs, and then click Windows Explorer.
  2. On the Tools menu, point to Find, and then click Files or Folders.
  3. Click Name & Location, and then type DiagnosticCmdletController.dll in the Named box.
  4. In the Look in box, click Local hard drives, and then click Find Now.
  5. Note the location of the DiagnosticCmdletController.dll file. For example, note the following location:
    C:\Program Files\Microsoft\Exchange Server\bin\Monitoring\x86
    Note If the DiagnosticCmdletController.dll file is in several locations, note each location.
  6. Click Start, click Run, type cmd in the Open box, and then click OK.
  7. Change the directory to the location of the DiagnosticCmdletController.dll file, type the following command, and then press ENTER:
    regsvr32.exe DiagnosticCmdletController.dll
    Note If the DiagnosticCmdletController.dll file is in several locations, repeat this step for each location.
  8. When the RegSvr32 dialog box displays the following message, click OK:
    DllRegisterServer in DiagnosticCmdletController.dll succeeded.

↑ Back to the top


More information

When this problem occurs, the following information is logged in the Setup log:
[6/20/2007 12:13:08 PM] [2] Beginning processing.
[6/20/2007 12:13:08 PM] [2] Starting: C:\WINDOWS\sysWOW64\regsvr32.exe arguments: 
/s /u "C:\Program Files\Microsoft\Exchange 
Server\bin\Monitoring\x86\DiagnosticCmdletController.dll"
[6/20/2007 12:13:08 PM] [2] Process standard output: 
[6/20/2007 12:13:08 PM] [2] Process standard error: 
[6/20/2007 12:13:08 PM] [2] [ERROR] Unexpected Error
[6/20/2007 12:13:08 PM] [2] [ERROR] Process execution failed with exit code 5.
[6/20/2007 12:13:08 PM] [2] Ending processing.

↑ Back to the top


Keywords: KB951183, kbprb, kbexpertiseinter, kbtshoot

↑ Back to the top

Article Info
Article ID : 951183
Revision : 3
Created on : 4/14/2008
Published on : 4/14/2008
Exists online : False
Views : 346