首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >有什么方法可以让我自动安装打印机驱动程序吗?

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

Stack Overflow用户
提问于 2019-02-12 19:55:03
回答 1查看 1.9K关注 0票数 0

我希望使用powershell脚本在Windows计算机上安装打印机驱动程序,而不是重复单击下一步选项。我尝试了静默模式的/S参数,但它进入静默模式,并在屏幕上提示下一步和完成,然后选择打印机型号(斑马gx30t)并安装它。我想让整个过程自动化。

EN

回答 1

Stack Overflow用户

发布于 2019-02-12 22:04:34

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

代码语言:javascript
运行
复制
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)

代码语言:javascript
运行
复制
/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.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54649587

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档