Wednesday, September 6, 2017

Add local printer via powershell

add-printerport -name 'hn-check' -printerhostaddress '192.168.0.1'

add-printerdriver -Name 'HP LaserJet 4200/4300 PCL6 Class Driver'

add-printer -Name 'hn-check' -DriverName 'HP LaserJet 4200/4300 PCL6 Class Driver' -PortName 'hn-check'