PowerTip of the Day-Printing Results

本文介绍如何使用 PowerShell 的 Out-Printer 命令来指定默认或特定打印机进行打印操作,并提供了查询已安装打印机的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

原文地址:http://app.en25.com/e/es.aspx?s=1403&e=4900&elq=127ab4a62a414c678d62945aef96e118

原文:

You will discover that Out-Printer can print results to your default printer. You can also print to any other printer when you specify its name:

Get-Process | Out-Printer -name 'Microsoft XPS Document Writer'

You should ask WIMI if you need to find out the names of your installed printers:

Get-WMIObject Win32_Printer | Select-Object -expandProperty Name

 

翻译:

使用Out-Printer会使用你默认的打印机来打印输出结果。如果想用其它打印机来打印的话只需要指定打印机的名字就可以了:

Get-Process | Out-Printer -name 'Microsoft XPS Document Writer'

本机到底配置了多少打印机?运行WIMI查询就可以查出来:

Get-WMIObject Win32_Printer | Select-Object -expandProperty Name

 

笔记:

即使没有配置过,一台win7的机器也会默认配置很多打印机信息,不如onenotexap等。所以更多时候需要指定到底用哪个配置。

转载于:https://www.cnblogs.com/aspnetx/archive/2010/06/25/1764995.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值