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

INF 檔案實戰攻略:辨識硬體資訊、一鍵安裝、徹底移除錯誤驅動、實現 XP 自動登入

編輯:XP 常見問題解答

INF 是微軟為驅動開發商定義的安裝資訊檔,善用它能辦大事:

1. 輕鬆辨識硬體資訊

  • [Version] 區段 Class 指出裝置類別:Media=多媒體/音效卡、Display=顯卡、Net=網卡、Modem=數據機、Printer=印表機、Image=攝影機
  • Manufacturer 顯示廠商(如 C-Media)
  • 檔名常含型號資訊(如 CM686)、光碟機 cdrom.inf、硬碟 disk.inf

INF 檔案範例

2. 一鍵安裝 INF 驅動

右鍵 INF 檔 →「安裝」即可完成驅動安裝,免執行 Setup.exe。

右鍵安裝 INF

3. 徹底移除錯誤驅動防止 Windows 自動裝回

  1. 裝置管理員 → 該裝置內容 →「驅動程式」→「驅動程式詳細資料」
  2. 記下所有檔案路徑
  3. 停用裝置 → 依路徑手動刪除所有驅動檔案

驅動程式詳細資料

4. 讓 Windows XP 自動登入

建立 INF 檔內容:

[Version]
Signature="$windows NT$"
[DefaultInstall]
Addreg=Myaddreg
[Myaddreg]
HKLM,Software\Microsoft\Windows NT\CurrentVersion\Winlogon,Defaultusername,abc
HKLM,Software\Microsoft\Windows NT\CurrentVersion\Winlogon,Defaultuserpassword,123

儲存為 .inf → 右鍵「安裝」即可(用戶名 abc、密碼 123 為例)。前提:硬體不大幅變動。

INF 應用遠不止於此,深入研究更多實用技巧待發掘。

Copyright © Windows教程網 All Rights Reserved