我目前正在尝试在电源 shell 中卸载显示适配器驱动程序。
我可以简单地转到设备管理器以找到显示适配器并卸载驱动程序,然后安装新的驱动程序。但是我想编写一个自动化脚本来简化它。
我试图在电源 shell 中使用“pnputil.exe -f -d oem ##。inf”来卸载显示适配器驱动程序。
但这没有用,给了我类似的东西
“删除驱动程序包失败:当前使用指定的INF安装了一个或多个设备”
有谁知道我该如何解决这个问题并使pnputil工作?
最佳答案
实际上,这不是PowerShell问题,因为它是Windows实用程序。
从运行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
应该适合您。关于windows - PnPutil命令卸载显示适配器驱动程序不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/44421574/