我希望使用powershell脚本在Windows计算机上安装打印机驱动程序,而不是重复单击下一步选项。我尝试了静默模式的/S参数,但它进入静默模式,并在屏幕上提示下一步和完成,然后选择打印机型号(斑马gx30t)并安装它。我想让整个过程自动化。
发布于 2019-02-12 22:04:34
不完全是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.https://stackoverflow.com/questions/54649587
复制相似问题