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等。所以更多时候需要指定到底用哪个配置。
原文:
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等。所以更多时候需要指定到底用哪个配置。
相关文章推荐
- PowerTip of the Day-Sorting Multiple Properties
- PowerTip of the Day-Replace Text in Files
- PowerTip of the Day-Outputting Text Data to File
- PowerTip of the Day from powershell.com上周汇总(二)
- PowerTip of the Day from powershell.com上周汇总(四)
- PowerTip of the Day-Finding Invalid Aliases
- PowerTip of the Day-Getting Installed Updates
- PowerTip of the Day-Add Help to Your Functions
- PowerTip of the Day from powershell.com上周汇总
- PowerTip of the Day from powershell.com上周汇总(三)
- PowerTip of the Day from powershell.com上周汇总(五)
- PowerTip of the Day from powershell.com上周汇总(六)
- PowerTip of the Day from powershell.com上周汇总(九)
- PowerTip of the Day from powershell.com上周汇总(八)
- PowerTip of the Day- Filtering Day of Week
- PowerTip of the Day-Creating Your Own Types
- PowerTip of the Day-Make Function Parameters Mandatory
- PowerTip of the Day from powershell.com上周汇总(四)
- PowerTip of the Day from powershell.com上周汇总(五)
- PowerTip of the Day from powershell.com上周汇总(六)