[英]PnPutil commands to uninstall the display adapter driver does not work
我目前正在嘗試在 power shell 中卸載顯示適配器驅動程序。 我可以簡單地去設備管理器找到顯示適配器並卸載驅動程序,然后安裝新的驅動程序。 但我想編寫一個自動化腳本來簡化它。
我嘗試在 power shell 中使用“pnputil.exe -f -d oem##.inf”來卸載顯示適配器驅動程序。
但它沒有用,給了我類似的東西
“刪除驅動程序包失敗:當前使用指定的 INF 安裝了一個或多個設備”
有誰知道我該如何解決這個問題並使 pnputil 工作?
這實際上不是 PowerShell 問題,因為它是一個窗口實用程序。
從運行pnputil /?
/delete-driver <oem#.inf> [/force]
Delete driver package from the driver store.
/force - delete driver package even when it is in use by devices.
所以運行pnputil.exe /delete-driver oem##.inf /force
應該適合你。
使用 devon 在命令行上首先使用驅動程序刪除設備的示例。 Devon 帶有 Window SDK。 Windows SDK - Windows 應用程序開發 _ Microsoft 開發人員pnputil 命令應該在此之后工作。
devcon remove "HDAUDIO\FUNC_01&VEN_1013&DEV_4206&SUBSYS_106B0600"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.