msdtc.exe is causing lock/active on windows system

msdtc.exe is causing lock/active on windows system.

Issue: If you need to update any application on windows sometime we face the issue with active/locked file by windows services or process.

Solution:

C:\windows>tasklist /m oci*

Image Name     PID      Modules
============   ======  ========
explorer.exe   3136     oci.dll
vmtoolsd.exe   36108   oci.dll
msdtc.exe      6932     oci.dll

If you kill the PID process for msdtc.exe , it open again as shown below:

taskkill /pid 6932 /F
SUCCESS: The process with PID 6932 has been terminated.

C:\windows>tasklist /m oci*

Image Name     PID     Modules
============   =====  ========
explorer.exe   3136   oci.dll
vmtoolsd.exe   36108   oci.dll
msdtc.exe      23492   oci.dll


So, for fix it we need to stop the services for msdtc.exe process and disable it for the duration of our activity and then start it. Open the Services.msc of microsoft windows and find the following service and stopped or disabled it for during the activity, then start it.

Service name is Distributed Transaction Coordinator

6.JPG

Leave a Reply