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

whatworking 0 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 Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
641 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,971 Reputation points Microsoft Vendor
    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.

    0 comments No comments