简体   繁体   English

如何以编程方式在打印机上设置“在后台处理最后一页后开始打印”

[英]How to programmatically set "start printing after last page is spooled" on printers

I've created over a hundred printers ( and associated queues ) on a print server, shared them, and configured them as desired (name, port, comments, location, etc) but an option I can't seem to identify a way to set is the flag on the advanced Printer Properties tab to "start printing after last page is spooled" .我已经在打印服务器上创建了一百多台打印机(和关联的队列),共享它们,并根据需要配置它们(名称、端口、评论、位置等),但我似乎无法确定一个选项设置是高级打印机属性选项卡上的标志,以“在后台处理最后一页后开始打印” I'm using PowerShell but open to whatever works.我正在使用PowerShell ,但对任何有效的方法都持开放态度。 I have dredged the.net and asked the all-powerful google in every variation I can think of to locate an answer, without result.我已经挖掘了.net 并在我能想到的每一种变体中询问了无所不能的谷歌来找到答案,但没有结果。 I've also looked through Microsoft's documentation of related print management PowerShell commands (such as Add-Printer, Set-PrinterProperty, Set-Printer, and Set-PrintConfiguration) and printer-related registry settings with no luck.我还查看了 Microsoft 的相关打印管理文档 PowerShell 命令(例如 Add-Printer、Set-PrinterProperty、Set-Printer 和 Set-PrintConfiguration)以及与打印机相关的注册表设置,但没有成功。

I'm curious if the -RenderingMode CSR option for the print management commands would do it, but I can't find much documentation on the specifics of that to confirm.我很好奇打印管理命令的-RenderingMode CSR选项是否可以做到这一点,但我找不到太多关于其细节的文档来确认。 Hopefully you fine folks can assist.希望各位好心人帮忙。

Help me Obi-Wan, you're my only hope...帮助我欧比旺,你是我唯一的希望……

https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-printer https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-printer

The property that sets this is called Queued .设置它的属性称为Queued So set Queued = $true through a CimInstance or through Get-WmiObject to set the print queue to Start printing after last page is spooled .因此,通过 CimInstance 或通过 Get-WmiObject 设置Queued = $true以将打印队列设置为Start printing after last page is spooled

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM