Need help with Print Management Cmdlets

This topic contains 2 replies, has 2 voices, and was last updated by  Edmond Yee 1 year, 6 months ago.

  • Author
  • #52778

    Mike W.

    Trying to find information on how to set the default tray and paper type for a printer build script I'm trying to build.
    This is my first time doing any real script building. Here is what I've built and it works so far

    My end goal is to have a script that will add a single printer to 4 print servers. That printer will be installed 4 times on each print server and each install will have a specific tray and paper configurations.

    I'm just not having any luck on finding out how to set the default paper and tray for each printer install.

    I found this but I don't really understand it.

    Thanks for any help

  • #52899

    Edmond Yee

    You can set the paper size using Set-Printconfiguration

  • #52906

    Edmond Yee

    The tray selection is not it's own attribute, but rather mixed in with the PrintTicketXML field of the Get-PrintConfiguration. His script is drilling down into PrintTicketXML and then finding the string 'psk:JobInputBin' which indicates the tray that is currently configured and then setting it to the desired tray.

You must be logged in to reply to this topic.