Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
The following error was generated when "$error.Clear(); if ($RoleProductPlatform -ieq "amd64") { $comClassFile = join-path $RoleInstallPath "bin\Monitoring\x86\DiagnosticCmdletController.dll"; $regSvr32WOW = join-path (join-path $env:SystemRoot sysWOW64) regsvr32.exe; start-SetupProcess -Name:"$regSvr32WOW" -Args:"/s /u `"$comClassFile`"" -Timeout:120000; }" was run: "Process execution failed with exit code 5.".

Process execution failed with exit code 5.

Operating system is Windows 2008 running Exchange 2010 with Hub Transport Role. I have already uninstalled and re-installed the update roll ups (currently on 4 and only 4 is installed). I have uninstalled the Microsoft Full Text Indexing Engine.

This server has been replaced and is not live, but it does exist in a production environment with live exchange servers, it is just not utilized.

Any help is appreciated.

share|improve this question
up vote 1 down vote accepted

Try this:

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

To fix this you'll have to register that DLL via regsvr32.exe.

share|improve this answer
Welcome to Server Fault! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Iain Sep 12 '11 at 16:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.