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

Windows XP 安裝程式 winnt32.exe 完整參數參考手冊

編輯:XP 系統基礎知識

winnt32.exe 位於安裝光碟 I386 目錄,支援在 Win95/98/Me/NT/2000/XP 下執行安裝或升級。完整語法:

winnt32 [/checkupgradeonly] [/cmd:command_line] [/cmdcons] [/copydir:i386_folder] [/copysource:folder] [/debug[level]:[filename]] [/dudisable] [/duprepare:path] [/dushare:path] [/m:folder] [/makelocalsource] [/noreboot] [/s:sourcepath] [/syspart:drive] [/tempdrive:drive] [/udf:id[,UDB_file]] [/unattend[num]:[answer_file]]

關鍵參數說明

  • /checkupgradeonly:僅檢查升級相容性,生成 Upgrade.txt。
  • /cmd:command_line:安裝最後階段前執行指定命令。
  • /cmdcons:安裝「故障修復主控台」作為開機選項。
  • /copydir / /copysource:在安裝目錄建立額外資料夾(前者永久保留,後者安裝完刪除)。
  • /debug[level]:[file]:建立偵錯日誌,等級 0~4(預設 2)。
  • /dudisable:停用動態更新。
  • /duprepare / /dushare:準備/共用從 Windows Update 下載的動態更新檔案。
  • /makelocalsource:將所有安裝來源檔複製到本地硬碟,適合光碟安裝後無光碟環境。
  • /noreboot:檔案複製完成後不重開機,方便執行其他命令。
  • /s:sourcepath:指定來源檔路徑(可重複最多 8 次)。
  • /syspart:drive:將開機檔複製到指定磁碟並標記為作用中,供他機開機續裝(需搭配 /tempdrive,僅限 NT/2K/XP)。
  • /tempdrive:drive:指定暫存檔/安裝目標分區。
  • /udf:id[,file]:套用唯一資料庫 (UDB) 修改應答檔設定。
  • /unattend[num]:[answer_file]:無人值守安裝模式,num 為複製完成至重開機的等待秒數。

善用參數可實現自動化部署、跨機器安裝、偵錯記錄等進階需求。

Copyright © Windows教程網 All Rights Reserved