@for %%a in (240 241 242 243 244 245) do cscript c:\windows\system32\prnport.vbs -a -r 10.0.0.%%a -h 10.0.0.%%a -o raw -n 9100
pause
how to add drivers next
rundll32 printui.dll,PrintUIEntry /if /b “NORTH-US-SRTEST-TEST24-BOGUS” /f %windir%\inf\ntprint.inf /r “IP_157.57.50.98” /m “HP Laserjet 4000 Series PCL” /Z