/build/static/layout/Breadcrumb_cap_w.png

Adding a IP printer and drivers post install task

Hi

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 

thanks


0 Comments   [ + ] Show comments

Answers (1)

Posted by: jonniipalos 5 years ago
Red Belt
2

This should hopefully answer the driver side: 

https://social.technet.microsoft.com/Forums/en-US/a208b9bc-a7c4-42a3-9e07-ddc8adc1a07e/injecting-printer-drivers-into-mdt-2010-image?forum=mdt

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


Comments:
  • 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 192.168.1.22):
    cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\Prnport.vbs" -a -r IP_192.168.1.22 -h 192.168.1.22 -o raw -n 9100
    -r IP_192.168.1.22 – a name of the network port;

    -h 192.168.1.22 – 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 5 years ago
    • awesome! - jonniipalos 5 years 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 5 years ago
 
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