Adding a IP printer and drivers post install task


Is there a way to add a printer and the drivers to a windows 10 image in a Post-install task?

We have so many printers, we do use GPO's in some school but others are added manually 


0 Comments   [ + ] Show comments

Answers (1)

Posted by: jonniipalos 1 year ago
Red Belt

This should hopefully answer the driver side: 


As for adding the printers, I've never done that in a post-install task, I usually had a printer server handle that. Hopefully another user may have an answer to that

  • Thanks
    Found something with the printui.exe

    in c:\windows\system32\Printing_Admin_Scripts\en-US there's some scripts ready

    How to Create a TCP/IP Port for a Network Printer?
    If you want to connect a network printer, you must first create a TCP/IP printer port for it (suppose the printer IP address is
    cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\Prnport.vbs" -a -r IP_192.168.1.22 -h -o raw -n 9100
    -r IP_192.168.1.22 – a name of the network port;

    -h – IP address of the device;

    -o raw – a port type (raw or lpr);

    -n 9100 – the number of the TCP port of the device (usually 9100).

    And then you can install a new network printer on the system:
    cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -a -p "HP5525" -m "HP Universal Printing PCL 6" -r " IP_192.168.1.22"
    After the script is over, a new printer HP5525 appears in the system. - psaussey 1 year ago
    • awesome! - jonniipalos 1 year ago
      • Remember that printers are configured on a per-user basis so you'll need your script to run in user context, not system. - anonymous_9363 1 year ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ