如何通过命令行,修改一个打印机的首选项,比如我需要修改打印机的彩色打印,更改为“黑白打印机”

whatworking 5 Reputation points
2023-11-24T03:06:13.4933333+00:00

通过rundll32 printui.dll,PrintUIEntry 添加了打印机,命令行如何使打印机设置到自己喜欢的配置呢,如设置打印机首选项,设置打印机默认黑白打印,通过使用命令行或脚本实现

By using rundll32 printui.dll, PrintUIEntry has added a printer. How can the command line set the printer to its preferred configuration, such as setting printer preferences and default black and white printing? This can be achieved by using the command line or script

Windows for business | Windows Server | User experience | Print jobs
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-11-27T03:00:11.01+00:00

    Hi,

    You can set the printer configuration using the Set-PrintConfiguration cmdlet. Set the -Color parameter to $false to specify the printer to use grayscale printing.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.