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

Windows Server 2003 IIS 啟動失敗根因與 DLL 批量註冊修復法

編輯:關於伺服器

錯誤現象與日誌證據

新裝 Win2003 做 Web 調試,IIS 啟動失敗。事件日誌來源 3SVC:
1. WWW 服務請求配置資料庫變更通知遇到問題
2. 初始化配置管理器出錯
3. 因錯誤退出,最終錯誤碼 2147500034 (0x80004002)——「不支援此介面」

根因分析

核心 COM 元件未正確註冊,導致介面介面查詢失敗。典型場景:系統檔案損壞、SP1 整合不全、註冊表殘留。

修復方案:批量註冊核心 DLL

以管理員身分執行 CMD,依次註冊:

regsvr32 C:\WINNT\system32\shell32.dll
regsvr32 C:\WINNT\system32\Browseui.dll
regsvr32 C:\WINNT\system32\mshtml.dll
regsvr32 C:\WINNT\system32\oleaut32.dll
regsvr32 C:\WINNT\system32\ole32.dll
regsvr32 C:\WINNT\system32\actxprxy.dll
regsvr32 C:\WINNT\system32\urlmon.dll
regsvr32 C:\WINNT\system32\shdocvw.dll

完成後執行 IISRESET 重啟 IIS,服務正常啟動。

擴展:自動化腳本化修復

建立 fix_iis_dlls.bat:

@echo off
set DLL_DIR=C:\WINNT\system32
for %%f in (shell32.dll Browseui.dll mshtml.dll oleaut32.dll ole32.dll actxprxy.dll urlmon.dll shdocvw.dll) do (
  echo Registering %%f...
  regsvr32 /s %DLL_DIR%\%%f
)
iisreset /restart
echo IIS DLL registration complete.
pause

預防建議

  • 使用整合最新 SP 的安裝媒體部署。
  • 部署後立即建立系統映像備份。
  • 定期執行 sfc /scannow 檢查系統檔案完整性。
Copyright © Windows教程網 All Rights Reserved