我有什么方法可以自动安装打印机驱动程序?

时间:2019-02-12 11:55:03

标签: windows powershell zebra-printers

我想使用Powershell脚本在Windows计算机上安装打印机驱动程序,而不是重复单击下一步选项。我已经尝试将/ S参数设置为静默模式,但是它进入了静默模式,并在屏幕上提示下一个并完成操作,然后选择打印机型号(Zebra gx30t)并安装它。我想自动化整个过程。

1 个答案:

答案 0 :(得分:0)

不完全是Powershell,但是我以前已经能够使用以下命令自动安装打印驱动程序

printui /ia /m "<driver_name>" /f "\\path\to_drivers\oemsetup.inf" /h x64

这应该以静默方式安装驱动程序,请注意,该驱动程序需要.INF文件

参数说明(来自https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/rundll32-printui

/ia Installs a printer driver by using an .inf file.
/m[model]   Specifies the driver model name. (This value can be specified in the .inf file.)
/f[file]    Species the Universal Naming Convention (UNC) path and name of the .inf file name or the output file name, depending on the task that you are performing. Use /F[file] to specify a dependent .inf file.

/h[architecture]    Specifies the driver architecture. Use one of the following: x86, x64, or Itanium.
相关问题