Set the Printer's Default Paper Tray

This script modifies the default paper tray on a printer.This script requires the PrintManagement PowerShell module that comes included with Windows Server 2012 and Windows 8.X.Here are the steps to run this script.1.  Open the script in PowerShell ISE2.  Modify the $strPrinterNa

5 Star
3,392 times
Add to favorites
E-mail Twitter Digg Facebook
  • What about the profile specifc paper tray setting
    1 Posts | Last post December 11, 2015
    • This script does well for setting the default paper tray setting.  How do you set the profile specific tray setting using PowerShell?  For example, using setprinter.exe out of the 2003 resource kit you can set both settings:
      Setprinter.exe PRINTER 8 "pdevmode=dmdefaultsource=260"
      Setprinter.exe PRINTER 9 "pdevmode=dmdefaultsource=260"
      In this case 8 would set the default tray and 9 would set the profile specific tray.  Or is the setprinter.exe tool still a valid tool for 2012r2?