chishingchan 发表于 2023-5-15 16:48:57

评测 DPInst 与 PnPUtil 驱动安装程序

本帖最后由 chishingchan 于 2023-5-15 17:32 编辑

程序参数请参考此贴

PnPUtil.cmd
@echo off
cd /d "%~dp0"
title 正在安装 Lenovo U460 设备驱动 for Windows 7 64-bit
pnputil.exe -i -a "Intel(R) Chipset Device Software"\*.inf
pnputil.exe -i -a "Intel(R) Management Engine Interface"\*.inf
pnputil.exe -i -a "Intel(R) 5 Series 4 Port SATA AHCI Controller"\*.inf
pnputil.exe -i -a "Intel(R) Turbo Boost Technology Driver"\*.inf
pnputil.exe -i -a "Lenovo ACPI-Compliant Virtual Power Controller"\*.inf
pnputil.exe -i -a "Atheros AR8131 PCI-E Gigabit Ethernet Controller"\*.inf
pnputil.exe -i -a "Broadcom 802.11n Network Adapter"\*.inf
pnputil.exe -i -a "Broadcom BCM2070 Bluetooth 2.1+EDR USB Device"\*.inf
pnputil.exe -i -a "Realtek High Definition Audio"\*.inf
pnputil.exe -i -a "Realtek USB 2.0 Card Reader"\*.inf
pnputil.exe -i -a "TouchStrip Fingerprint Sensor"\*.inf
pnputil.exe -i -a "NVIDIA GeForce 305M\Display\*.inf"
pnputil.exe -i -a "NVIDIA GeForce 305M\HDAudio\*.inf"
在安装显卡过程中出现一个错误,但不影响驱动的完成。
Microsoft PnP 工具

正在处理 inf:             NVMVLE.INF
无法在任何系统设备上安装驱动程序 : 没有可用的数据了。

总尝试次数:            1
已成功导入的数量: 0

DPInst.cmd
@echo off
cd /d "%~dp0"
title 正在安装 Lenovo U460 设备驱动 for Windows 7 64-bit
DPInst64.exe /S /LM /F /SA /SW /PATH "Intel(R) Chipset Device Software"
DPInst64.exe /S /LM /F /SA /SW /PATH "Intel(R) Management Engine Interface"
DPInst64.exe /S /LM /F /SA /SW /PATH "Intel(R) 5 Series 4 Port SATA AHCI Controller"
DPInst64.exe /S /LM /F /SA /SW /PATH "Intel(R) Turbo Boost Technology Driver"
DPInst64.exe /S /LM /F /SA /SW /PATH "Lenovo ACPI-Compliant Virtual Power Controller"
DPInst64.exe /S /LM /F /SA /SW /PATH "Atheros AR8131 PCI-E Gigabit Ethernet Controller"
DPInst64.exe /S /LM /F /SA /SW /PATH "Broadcom 802.11n Network Adapter"
DPInst64.exe /S /LM /F /SA /SW /PATH "Broadcom BCM2070 Bluetooth 2.1+EDR USB Device"
DPInst64.exe /S /LM /F /SA /SW /PATH "Realtek High Definition Audio"
DPInst64.exe /S /LM /F /SA /SW /PATH "Realtek USB 2.0 Card Reader"
DPInst64.exe /S /LM /F /SA /SW /PATH "TouchStrip Fingerprint Sensor"
DPInst64.exe /S /LM /F /SA /SW /PATH "NVIDIA GeForce 305M\Display"
DPInst64.exe /S /LM /F /SA /SW /PATH "NVIDIA GeForce 305M\HDAudio"

结论:
驱动安装功能 DPInst 等于 PnPUtil!但是,PnPUtil 是 7 系统自带,而且还有额外功能。所以 PnPUtil 胜出!

额外,笔记本发热量大的原因我也找到了,看下图:

选中 ⊙省电 就好!

chishingchan 发表于 2023-5-15 16:59:57

本帖最后由 chishingchan 于 2023-5-15 17:36 编辑

此工具的命令行可能是版本的原因与官方有点变化:
Microsoft PnP 工具
用法:
------
pnputil.exe [-f | -i] [ -? | -a | -d | -e ] <INF 名称>
示例:
pnputil.exe -a a:\usbcam\USBCAM.INF      -> 添加 USBCAM.INF 指定的程序包
pnputil.exe -a c:\drivers\*.inf          -> 添加 c:\drivers\ 中的所有程序包\
pnputil.exe -i -a a:\usbcam\USBCAM.INF   -> 添加和安装驱动程序包
pnputil.exe -e                           -> 枚举所有第三方程序包
pnputil.exe -d oem0.inf                  -> 删除程序包 oem0.inf
pnputil.exe -f -d oem0.inf               -> 强制删除程序包 oem0.inf
pnputil.exe -?                           -> 此用法屏幕

yyz2191958 发表于 2023-5-15 18:03:42

谢谢分享

我是小青蛙 发表于 2023-5-15 18:45:32

现在主用pnputi

yc2428 发表于 2023-5-15 19:06:57

谢谢分享!

旁观者清 发表于 2023-5-15 19:46:33

谢谢分享。

luxsys88 发表于 2023-5-15 20:03:30

驱动安全很方便

nttwqz 发表于 2023-5-15 21:02:37

pnputil不同系统版本命令参数不尽相同,简单来说,高版本功能更强大,高版本支持 /install - 在任何匹配的设备上安装/更新驱动程序 参数,这个参数支持通配符,7不支持。



https://learn.microsoft.com/zh-cn/windows-hardware/drivers/devtest/pnputil-command-syntax

9zhmke 发表于 2023-5-15 21:48:10

好像DrvIndex还要强大一些

lx5815 发表于 2023-5-16 09:51:00

谢谢分享

lx5815 发表于 2023-5-16 09:51:16

谢谢分享

wzt0524 发表于 2023-5-16 20:06:41

谢谢分享

china.gaofeng 发表于 2023-5-27 16:53:48

这算评测了个啥?莫名其妙

topway 发表于 2023-6-5 16:39:47

devcon 也可以用 命令行 安装驱动

fxl0571 发表于 2023-12-11 20:12:17

谢谢分享

QuadAndroid 发表于 2023-12-11 22:12:09

除了dism,还有什么支持命令行离线注入驱动的工具么
页: [1]
查看完整版本: 评测 DPInst 与 PnPUtil 驱动安装程序