Creating Windows printer ports

Home Forums Scripting PowerShell Creating Windows printer ports

  • This topic has 2 replies, 3 voices, and was last updated 6 years ago by AvatarU4iA.
Viewing 1 post (of 1 total)
  • Author
  • Avatar

    We create shared Windows print queues that use printer pooling for our products. This means that the job of creating print queues is multiplied by the number of pooled printers we want to add. We end up creating a bunch of printers like:
    PrtA (shared), PrtA01, PrtA02, PrtA03
    PrtB (shared), PrtB01, PrtB02, PrtB03
    This would be for 2 shared print queues that each have 3 pooled printers. The wizard clicking is easy, but very monotonous.

    The PowerShell commands for creating print queues are fine, but they are dependent on creating a port first. The Add-PrinterPort cmdlet seems to imply the port type through the parameters instead of explicitly stating the type. Our product has it’s own port type that shows up in the wizard. There does not seem to be a way to create a printer port in PowerShell of our port type.

    Any suggestions where to begin?


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.