驅動程式是作業系統與硬體溝通的橋樑。Windows 8 引入了新的驅動模型(WDDM 1.2、USB 3.0 原生支援等),驅動異常會導致藍畫面 (BSOD)、裝置無法識別、效能下降、耗電異常等問題。定期檢查驅動狀態是維護系統穩定的關鍵。
Get-PnpDevice | Format-Table Status, Class, FriendlyName, InstanceId -AutoSize
輸出範例:
Status Class FriendlyName InstanceId
------ ----- ------------ ----------
OK Display NVIDIA GeForce GTX 1060 PCI\VEN_10DE...
OK DiskDrive Samsung SSD 860 EVO 500GB SCSI\DISK&VEN_SAMSUNG...
Error USB Unknown USB Device USB\VID_0000&PID_0000...
Unknown System ACPI\PNP0C02 ACPI\PNP0C02...
Get-PnpDevice | Where-Object {$_.Status -ne "OK"} | Format-Table Status, Class, FriendlyName, Problem -AutoSize
Export-WindowsDriver -Online -Destination D:\DriverBackup
# 或列出已安裝第三方驅動
Get-WindowsDriver -Online | Where-Object {$_.ProviderName -ne "Microsoft"} | Format-Table ProviderName, Class, Version, Date -AutoSize
msinfo32。適用於追蹤間歇性藍畫面、驅動程式記憶體洩漏:
verifier。%SystemRoot%\MEMORY.DMP) 可定位問題驅動。verifier /reset 並重開機關閉驗證。注意: 驗證期間系統效能會下降,建議僅在測試環境或非生產機器執行。
建議順序: 晶片組 → 顯示卡 → 音訊/網路 → 其他周邊。安裝前建立還原點。
| 代碼 | 含義 | 常見解決 |
|---|---|---|
| Code 10 | 裝置無法啟動 | 重新安裝驅動、檢查硬體相容性、BIOS 更新 |
| Code 28 | 未安裝驅動程式 | 從廠商網站下載安裝對應驅動 |
| Code 39 | 驅動程式損毀/遺失 | 解除安裝裝置 → 掃描硬體變更重新安裝 |
| Code 43 | Windows 停用裝置(回報問題) | 更新驅動、檢查硬體故障、嘗試其他 USB 埠/插槽 |
| Code 52 | 驅動程式數位簽章驗證失敗 | 安裝 WHQL 簽章驅動、暫時停用強制簽章啟動 (F7) |
將以下 PowerShell 儲存為 Check-Drivers.ps1,設定每日執行,發現問題以郵件通知:
$bad = Get-PnpDevice | Where-Object {$_.Status -ne "OK"}
if ($bad) {
$body = $bad | Format-Table Status, Class, FriendlyName, Problem -AutoSize | Out-String
Send-MailMessage -To "admin@example.com" -From "monitor@example.com" -Subject "Driver Alert: $env:COMPUTERNAME" -Body $body -SmtpServer "smtp.example.com"
}
檢查 Windows 8 硬體驅動程式狀態,建議採取「裝置管理員視覺化檢查 → PowerShell 批次篩選異常 → 系統資訊查看詳情 → 依錯誤代碼對症下藥」的分層策略。保持晶片組、顯示卡、儲存控制器驅動為最新 WHQL 版本,並善用驅動程式驗證工具捕捉隱性問題,能大幅降低系統不穩定風險。