Original article address:Http://app.en25.com/e/es.aspx? S = 1403 & E = 4900 & elq = 127ab4a62a414c678d62945aef96e118
Original article:
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 shoshould ask wimi if you need to find out the names of your installed Printers:
Get-wmiobject win32_printer | select-object-expandproperty name
Translation:
UseOut-printerThe default printer will be used to print the output results. If you want to print with another printer, you only need to specify the printer Name:
Get-process | out-printer-name 'Microsoft XPS document writer'
How many printers are configured on the local machine? RunWimiThe query can be found:
Get-wmiobject win32_printer | select-object-expandproperty name
Notes:
Even if noWin7The machine will also configure a lot of printer information by default.OneNote,Xap. Therefore, you need to specify which configuration to use.