MSDTC uninstall fails with event 4157 (Could not stop the MS DTC service or or one of its dependent services)

Some difficulties came up today while trying to reinstall MSDTC.

Running msdtc -uninstall gave no result. In the eventlog, I found the following error:

Source: Microsoft-Windows-MSDTC
Event ID: 4157
Task Category: SVC
Description:
Could not stop the MS DTC service or or one of its dependent services. MSDTC uninstall fails with event 4157 (Could not stop the MS DTC service or or one of its dependent services) 1

I tried to manually stop the MSDTC service (Distributed Transaction Coordinator) in Services, but the error still popped up after running msdtc -uninstall.

The solution was quite stupid (and dumb at the same time): I had forgotten to run the command prompt as administrator. UAC was nagging me.

To verify your uninstall of MSDTC completed succesfully, open the Application log and note event 4105: The Microsoft Distributed Transaction Coordinator service was succesfully removed.

MSDTC uninstall fails with event 4157 (Could not stop the MS DTC service or or one of its dependent services) 2

 

 

Leave a Reply

avatar
  Subscribe  
Notify of