How to uninstall Workflow Manager 1.0 when the command ‘Remove-WFHost’ does not work
One of my customers had installed Workflow Manager 1.0 but while uninstalling it, he was encountering the mentioned below error:
This computer is part of a farm. To uninstall, first leave the farm either using 'Leave from Farm' option in Configuration Wizard or Remove-WFHost cmd-let in PowerShell.
When we tried to execute the command Remove-WFHost, we were getting the following error:
remove-wfhost : Ceritificate requested with thumbprint {GUID} not found in the certificate store
Resolution:
We executed the following steps to resolve the issue.
- Deleted the following registry hives:
HKLM\Software\Microsoft\Workflow Manager
HKLM\Software\Microsoft\Service Bus
2. Deleted the following databases:
SbGatewayDatabase
SbManagementDB
SBMessageContainer01
WFManagementDB
WFResourceManagementDB
WFInstanceManagementDB
3. Uninstalled CU1 for Workflow Manager 1.0 and CU1 for Service Bus 1.0 from Control Panel
4. Uninstalled Workflow Manager 1.0, Workflow Manager Client 1.0, Service Bus 1.0 and Windows Fabric in the order mentioned (Refer: https://technet.microsoft.com/en-us/library/jj193489.aspx)
5. Rebooted the machine hosting WFM 1.0
Written by:
Kshitij Dattani
Reviewed by:
Shashidharan Krishnan
Microsoft India GTSC
Comments
Anonymous
June 17, 2014
I am planning to install Workflow Manager, I have 3 WFE and 4 APP server. Do I need to install on all the servers or I can just install it on the 3 WFE server. I was checking this FAQ but it does not mention anything about the Workflow Manager www.ekhichdi.com/.../Sharepoint-2013-FAQ-and-changes-467.htmlAnonymous
June 21, 2014
I have 1 APP, 3 WFE Servers ...Do i need to install workflow manager 1.0 in all servers?Shall i install workflow manager first in APP server then do i need to JOIN the form in all 3 WFE by installing workflow manager 1.0 at all 3 WFE.Please advise.Anonymous
September 17, 2014
It helps me solve my problem. thanksAnonymous
January 28, 2015
You must add to the guide that the folder: C:Program filesWorkflow Manager must be also deleted mainly because it will give you an error if you try to install again workflow manager.Anonymous
July 09, 2015
Can you give me more instruction on this step please?! 2. Deleted the following databases: SbGatewayDatabase SbManagementDB SBMessageContainer01 WFManagementDB WFResourceManagementDB WFInstanceManagementDBAnonymous
September 06, 2015
@Anthony, use SQL Management studio upon your SQL Server to delete those databasesAnonymous
March 21, 2016
Tip: I had this same problem in my test environment because the machine cert that was used for workflow expired and was deleted from the server. I was able to recover this "old" cert however by looking for the original request ID in the CA cert list. Once I found the original machine cert by matching the thumbprints, I grabbed the RequestID and ran: "certreq -retrieve 1246 Old.cer". This exported the old cert so I could copy it to the workflow server and import it again. Once imported, you will still get this error. That's because the cert expired. Easy fix though, just roll back time on the server till the day before it expired. Now with just run the powershell found here to replace the old cert with your new one. http://www.harbar.net/articles/wfm3.aspx. Should update with no issues and now you can just reset the time on the server back to the current time and everything should be happy once more.Anonymous
May 17, 2016
Thanks Kshitij for your useful post.#1 & #2 helped me.