Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows Server 系統教學 >> Server 2003

解決 MS DTC 交易管理器無法啟動 (事件 ID 4112/7024) 註冊表重置法

編輯:Server 2003

Windows 事件記錄器出現:
🔴 來源:MSDTC,事件 ID 4112:無法啟動 MS DTC 交易管理器。
🔴 來源:Service Control Manager,事件 ID 7024:Distributed Transaction Coordinator 服務因錯誤 3221229584 (0xC0001010) 停止。

根因

MSDTC 註冊表配置損毀或服務二進位檔異常,需完全移除並重新註冊。

解決方案:批次檔自動化修復

建立 FixMSDTC.bat (以系統管理員執行):

@echo off
setlocal
@echo %WINDIR%\System32\msdtc.exe -uninstall
%WINDIR%\System32\msdtc.exe -uninstall
call :delkey "HKCR\CID"
call :delkey "HKLM\SYSTEM\CurrentControlSet\Services\MSDTC"
call :delkey "HKLM\SYSTEM\ControlSet001\Services\MSDTC"
call :delkey "HKLM\SYSTEM\ControlSet002\Services\MSDTC"
call :delkey "HKLM\Software\Microsoft\MSDTC"
@echo %WINDIR%\System32\msdtc.exe -install
%WINDIR%\System32\msdtc.exe -install
endlocal
goto :EOF
:delkey
set key=%1
call :delkeyq %key% >nul 2>&1
@echo.
goto :EOF
:delkeyq
REG DELETE %key% /F

執行後驗證

  1. 批次檔完成後,檢查事件記錄器「系統」日誌。
  2. 應出現:「已成功安裝 Microsoft Distributed Transaction Coordinator 服務。」
  3. 開啟「元件服務」 (dcomcnfg) → 「電腦」→「我的電腦」→「Distributed Transaction Coordinator」→「本地 DTC」→ 右鍵「內容」確認服務狀態為「已啟動」。

適用場景

  • 🔧 SQL Server / COM+ 應用依賴 MSDTC 進行分散式交易
  • 🔧 系統升級/遷移/還原後 MSDTC 服務無法啟動
  • 🔧 事件記錄器持續出現 4112/7024 錯誤

注意事項

  • ⚠️ 執行前建議備份 HKLM\Software\Microsoft\MSDTC 及服務註冊表項。
  • ⚠️ 叢集環境下需在所有節點執行並協調資源群組遷移。
  • ⚠️ 修復後需重新配置 MSDTC 安全性設定 (網路存取、XA 交易、輸出/輸入呼叫等)。
Copyright © Windows教程網 All Rights Reserved