您的位置:首页 > 其它

PowerTip of the Day-Printing Results

2010-06-25 11:22 513 查看
原文地址: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的机器也会默认配置很多打印机信息,不如onenote,xap等。所以更多时候需要指定到底用哪个配置。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: