Download the HP PCL 5 Universal driver from HP: https://support.hp.com/ca-en/document/c04324001 and zip it together, upload to the Kscript as a dependency.
Create a new online Kscript and the following 3 entries under the remediation section:
**** This line creates a TCP/IP printer port, RAW, with IP address of 192.168.2.27 ( replace this IP with desired IP address)****
Directory: $(KACE_SYS_DIR)
File: cscript.exe
Wait for Completion: Selected
Parameters: $(KACE_SYS_DIR)\Printing_Admin_Scripts\en-US\prnport.vbs -a -r 192.168.2.27_1 -h 192.168.2.27 -o raw -n 9100
**** This line installs the HP Universal Print Driver to be used by the printer at the earlier created IP Port. ( replace 115 with the script # of your SMA)****
Directory: $(KACE_SYS_DIR)
File: cscript.exe
Wait for Completion: Selected
Parameters: $(KACE_SYS_DIR)\Printing_Admin_Scripts\en-US\prndrvr.vbs -a -m "HP Universal Printing PCL 5" -h C:\programdata\dell\kace\kbots_cache\packages\kbots\115
**** This line installs the HP Printer, provides a label of it as a descriptor name and attaches to earlier created IP address based port. ****
Directory: $(KACE_SYS_DIR)
File: cscript.exe
Wait for Completion: Selected
Parameters: $(KACE_SYS_DIR)\Printing_Admin_Scripts\en-US\prnmngr.vbs -a -p "First Floor Bld A" -m "HP Universal Printing PCL 5" -r 192.168.2.27_1
In this example, printer is named "First Floor Bld A" and IP is 192.168.2.27. Change the descriptor name and IP to suit your needs and IP to match the port created in line 1.
Comments