Jump to content

Recommended Posts

Posted

Hi,

is there a Way to install ip printers from a script or other software?

i have a mdt 2012 servere where i wish to install specific ip printers to specific locations.

Posted

rem set variables

set ip=172.31.20.63

set loc="KES Admin M600"

set model="HP Universal Printing PCL 5"

set os="windows 2000 or XP"

set inf="\\Server\Share\Printers\HP M600\hpcu130b.inf"

 

rem commands follow!

 

rem delete the old

rundll32 printui.dll,PrintUIEntry /dl /n %loc% /q

 

rem add the port

cscript %windir%\system32\prnport.vbs -a -r IP_%ip% -h %ip% -n 9100 -o raw -me

 

rem add the printer driver

rundll32 printui.dll,PrintUIEntry /ia /m %model% /v %os% /f %inf% /q

rem add the printer

rundll32 printui.dll,PrintUIEntry /if /m %model% /b %loc% /v %os% /f %inf% /r IP_%ip% /z /Gw

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...