Windows 2000 & XP Standard IP printer Port creation
Posted on 2005-04-08
I am trying to automate the printer creation process for our users. I have managed to get this working forXp using the following command line script:
cscript %SystemRoot%\SYSTEM32\PRNMNGR.vbs -l >c:\prnlist.txt
findstr /C:"UKPSH Printer82 Colour" c:\prnlist.txt
if not errorlevel 1 goto END
cscript %SystemRoot%\SYSTEM32\PRNPORT.vbs -a -r IP_220.127.116.11 -h 18.104.22.168 -o raw -n 9100 -me -i 1
@Echo Printer installing - Please wait.
rundll32 printui.dll,PrintUIEntry /if /b "Printer82 Colour" /f "\\winserver1\drivers\hp2000c\hp2x00c.inf" /r IP_22.214.171.124 /m "HP 2500C Series Printer" /z
del /q c:\prnlist.txt
As I said before the above script works beautifully for XP, however Win 2000 does not have or support the PRNPORT.VBS. This file is installed with Xp but not 2k. I have copied it over but it errors when run.
Does anyone know of a method to create a IP printer port that will work for both OS's?