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

Windows XP Home Edition 安裝 IIS 完整教程:修改系統組件檔啟用隱藏功能

編輯:XP 系統基礎知識

背景

XP Home 版預設隱藏 IIS(Internet Information Services)安裝選項,也不支援 PWS,無法直接架設 Web 伺服器測試 ASP。但可透過修改系統組件設定檔、補齊 Win2000 的 IIS 核心檔案來啟用。

操作步驟

  1. 編輯 sysoc.inf 取消隱藏:
    • 開啟 X:\Windows\inf\sysoc.inf(X 為系統盤)。
    • 找 [Components] 區段下的 iis=iis.dll,OcEntry,IIS.inf,hide,7。
    • 修改為 iis=iis.dll,OcEntry,IIS2.inf,,7(移除 hide,改引用 IIS2.inf),存檔。
  2. 從 Win2000 光碟提取核心檔:
    • 從 Win2000 安裝光碟(Professional/Server/Advanced Server 均可)複製 iis.dl_、iis.in_ 到硬碟(如 C:\)。
    • 命令提示字元執行:
      expand C:\iis.dl_ C:\IIS2.dll
      expand C:\iis.in_ C:\IIS2.inf
      生成 iis2.dll、IIS2.inf。
  3. 部署檔案到系統目錄:
    • iis2.dll → X:\Windows\system32\Setup
    • IIS2.inf → X:\Windows\inf
  4. 安裝 IIS:
    • 控制台 → 新增/移除程式 → 新增/移除 Windows 元件,即可見到「Internet 資訊服務 (IIS)」。
    • 安裝過程若提示尋找檔案,指向 Win2000 光碟 I386 目錄。

重要限制與建議

  • XP 安裝的 IIS 僅支援單一網站、無網站管理功能、最大並發連線數 10。
  • XP 畢竟是工作站非伺服器作業系統,學習 ASP 建議使用 Windows 2000 Advanced Server 獲得完整 IIS 功能。
Copyright © Windows教程網 All Rights Reserved