/build/static/layout/Breadcrumb_cap_w.png
09/24/2019 134 views

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

Comments


All Answers

1

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

Answered 09/24/2019 by: jonniipalos
5th Degree Black Belt

  • 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.
    • awesome!
      • Remember that printers are configured on a per-user basis so you'll need your script to run in user context, not system.

Don't be a Stranger!

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

Sign up! or login

Share