原文地址: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等。所以更多时候需要指定到底用哪个配置。

相关文章:

  • 2021-09-22
  • 2021-10-11
  • 2021-09-26
  • 2021-08-19
  • 2022-02-02
  • 2021-11-18
  • 2021-07-15
  • 2021-07-12
猜你喜欢
  • 2021-12-12
  • 2021-07-08
  • 2022-02-22
  • 2021-12-03
  • 2022-02-09
  • 2022-01-21
  • 2021-11-14
相关资源
相似解决方案