How to remove a windows service

Today I needed to reinstall CRM on a VPC and for some reason the Async Service wasn’t unregistered properly. When I tried uninstalling it using installutil with the following command:

“C:WINDOWSMicrosoft.NETFrameworkv2.0.50727installutil” /u “C:Program FilesMicrosoft Dynamics CRMServerbinCrmAsyncService.exe”

it couldn’t find the file. Seemingly, the uninstaller had a job half way and removed the file but not unregistering it as a service. So, how to uninstall? Looking around a bit I found the following command did exactly this:

sc delete MSCRMAsyncService
Good to know, if needed.

Gustaf Westerlund
Microsoft Dynamics CRM Chief Architect