Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

WinXP 找不到 IIS (Internet Information Services)?手動安裝修復教學

編輯:XP 系統應用技巧

WinXP 專業版預載 IIS 5.1,但「新增/移除 Windows 元件」中找不到選項,通常是 sysoc.inf 註冊資訊遺失或安裝來源檔案不全。透過補充安裝檔、修改註冊檔、展開系統檔案可恢復 IIS 安裝選項。

完整安裝步驟

  1. 下載 IIS 5.1 安裝檔(iis51.exe 或從 WinXP 光盤 \VALUEADD\MSFT\NT\IIS 複製),解壓縮至 D:\iis51(根目錄最佳)。
  2. 「執行」輸入 C:\Windows\inf\sysoc.inf 開啟,找到 [Components] 區段,新增一行:
    iis=iis2.dll,OcEntry,iis2.inf,,7 → 存檔。
  3. 「執行」輸入 cmd,依序執行展開指令:
    expand D:\iis51\iis.dl_ C:\Windows\system32\setup\iis2.dll
    expand D:\iis51\iis.in_ C:\Windows\inf\iis2.inf
    (路徑請依實際解壓位置調整)
  4. 開啟「控制台」→「新增/移除程式」→「新增/移除 Windows 元件」,即可看到「Internet Information Services (IIS)」核取方塊,勾選安裝。
  5. 安裝過程若提示找不到檔案,點「瀏覽」指向 D:\iis51 即可。

常見錯誤與修復

  • 0x4b8 錯誤: esentutl /p C:\Windows\security\database\secedit.sdb 修復安全性資料庫後重試。
  • 資料庫連線錯誤 (8004E00F):「元件服務」→「電腦」→「COM+ 應用程式」→「IIS Out-Of-Process Pooled Applications」內容 →「識別」→ 選「系統帳戶」→ 重啟 IIS。
  • 無法進入元件服務: 執行 msdtc -resetlog 重設 MSDTC 記錄檔。

安裝完成後,於「管理工具」→「Internet Information Services」中管理網站與虛擬目錄。

Copyright © Windows教程網 All Rights Reserved