Printing Results

Share |

Join PowerShell.com!
Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Award-winning PowerShellPlus


Admin Guide to PowerShell Remoting


Mastering PowerShell eBook

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

Twitter This Tip! ReTweet this Tip!


Posted May 24 2010, 08:00 AM by ps1
Copyright 2012 PowerShell.com. All rights reserved.