Need help with Print Management Cmdlets

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Edmond Yee Edmond Yee 3 months, 1 week ago.

  • Author
    Posts
  • #52778
    Profile photo of Mike W.
    Mike W.
    Participant

    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 http://pastebin.com/5uRv5PtS

    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. https://gallery.technet.microsoft.com/scriptcenter/Set-the-Printers-Default-eee2631d

    Thanks for any help

  • #52899
    Profile photo of Edmond Yee
    Edmond Yee
    Participant

    You can set the paper size using Set-Printconfiguration

    https://technet.microsoft.com/en-us/library/hh918361%28v=wps.630%29.aspx

  • #52906
    Profile photo of Edmond Yee
    Edmond Yee
    Participant

    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.