remush Posted October 15, 2012 Share Posted October 15, 2012 Hi all,Have spent a while researching how to install a ipp printer from the command line.Here's the command I have at the moment.rundll32 printui.dll,PrintUIEntry /b "Brother HL-1430" /x /n "Brother HL-1430" /if /f "\\adrafileserver\drivers\Brother HL-1430\Driver\pcl\Win2k_xp\ENGLISH\OEMHL01A.INF" /r "http://10.1.1.100:631/printers/Brother_HL-1430_series" /m "Brother HL-1430 series"A window opens saying "Files Needed" and on the next line in that window it says "The file 'BROHL143.PPD' on Brother Laser Printer Driver Disk is needed."There is also a window behine it, with the following "Coping Files..." And under the heading it says c:\BROHL134.PPDSo the system is looking for that driver in c:\ however the file is located on the network in the same dir as OEMHL01A.INFAny suggestions welcome Link to comment Share on other sites More sharing options...
allen2 Posted October 15, 2012 Share Posted October 15, 2012 You might want to try using the prndrvr.vbs included in xp. Link to comment Share on other sites More sharing options...
remush Posted October 17, 2012 Author Share Posted October 17, 2012 (edited) Thanks for your input allen2I have also tried the prndrvr.vbs command and prnport.vbsTurns out that If I want to use prndrvr.vbs, then I first have to create the port.I've got problems with that as wellThe full path to the cups printer is : http://10.1.1.100:631/printers/Brother_HL-1430_seriesThe following prnport.vbs command completes without an error, but does NOT create a full path.C:\>cscript C:\WINDOWS\System32\Prnport.vbs -a -r "IP_Internet Port" -h "http://10.1.1.100:631" -o RAW -n 631Microsoft (R) Windows Script Host Version 5.7Copyright (C) Microsoft Corporation. All rights reserved.Created/updated port IP_Internet PortHowever, if I run the command with the full path, it fails :C:\>cscript C:\WINDOWS\System32\Prnport.vbs -a -r "IP_Internet Port" -h "http://10.1.1.100:631/printers/Brother_HL-1430_series" -o RAW -n 631Microsoft (R) Windows Script Host Version 5.7Copyright (C) Microsoft Corporation. All rights reserved.Unable to create/update port IP_Internet Port Error 0x80041008 Invalid parameterI am trying to find the solution on google, but am not having any luck, will continue.The low tech solution is to copy all the driver files and dependents to my c:\ before running the script, run the script, and then delete the files from c: after I can add the IPP cups printer to windows xp using a gui, but I need it scripted for efficiency Edited October 17, 2012 by remush Link to comment Share on other sites More sharing options...
remush Posted October 17, 2012 Author Share Posted October 17, 2012 Problem was that the drivers have to be in the same dir as the batch file.My batch file was located at c:\ which is why I was prompted for driver files located at c: as I posted earlier.heres my work around.xcopy "\\adrafileserver\drivers\Brother HL-1430\Driver\pcl\Win2k_xp\ENGLISH" c:\brother_HL-1430_driver /d /c /h /e /i /y /rcd c:\brother_HL-1430_driverrundll32 printui.dll,PrintUIEntry /b "Brother HL-1430 series" /x /n "Brother HL-1430" /if /f "OEMHL01A.INF" /r "http://10.1.1.100:631/printers/Brother_HL-1430_series" /m "Brother HL-1430 series"cd c:\rmdir c:\brother_HL-1430_driver /s /qI'm copying the driver files to a folder on my c:changing dir into that folderrunning the command to install the printerchanging dir to c:\deleting the folder that contains the driver filesI would prefer to change change dir to the folder on my server that contains the files instead of loading up my network, however got the following error when i tried.C:\>cd "\\adrafileserver\drivers\Brother HL-1430"'\\adrafileserver\drivers\Brother HL-1430'CMD does not support UNC paths as current directories.I guess I could create a mapped drive first, and do it that way... As always any comments and suggestions are welcome. Link to comment Share on other sites More sharing options...
remush Posted October 17, 2012 Author Share Posted October 17, 2012 (edited) Here's the Final solution.Yep I used a mapped driveREM Create Mapped Drivenet use z: "\\adrafileserver\drivers\Brother HL-1430\Driver\pcl\Win2k_xp\ENGLISH"cd z:REM Install Printerrundll32 printui.dll,PrintUIEntry /b "Brother HL-1430 series" /n "Brother HL-1430" /if /f "z:\OEMHL01A.INF" /r "http://10.1.1.100:631/printers/Brother_HL-1430_series" /m "Brother HL-1430 series"REM Delete Mapped Drivecd c:net use z: /deleteBe aware !!!!I noticed that if the printer is installed as a network printer, that MS Word 2007 runs very slow. Did a bit of research and it turns out that word is querying the server for information about the printer constantly. Which causes the lag in word.So a bit of googling turns up the solution to install the IPP Internet Printer as a Local Printer using the IP address as the port. To do this with the gui, you have to install the printer as an internet printer, delete it, and then re install the printer as a local printer, and use the port created when you installed it as a ipp printer. Why ? I could not simply install the ipp path as a port, perhaps there is a way, but I have not found it. Windows refuses to accept the full https://10.1.1.100:631/printers/Brother_HL-1430_series path as a local port or as a tcp/ip port when manually creating ports with windows xp "Printers and Faxes" > "Server Properties" > Ports Tab > Add Port button.Information here was helpful.http://support.microsoft.com/kb/314486Sample of How to Add an IPP Printerrundll32 printui.dll,PrintUIEntry /b "DisplayPrinterName on http" /x /n "part of the n switch" /if /f %windir%\inf\ntprint.inf /r "http://hostname/printers/sharename/.printer" /m "HP Laserjet 4000 Series PCL"Note The /x switch is not documented with /?. The /x switch expects /n even though it is not used. Also, you may be using a printer other than the HP Laserjet 4000 Series PCL. The /x flag treats the install as a “Web point and print.” This flag indicates that the printer is a masquerading (masq) printer. A masq printer is partly local printer and partly a network printer. A masq printer receives rich notifications from the remote print server. Without the /x option, the printer is a local printer with a redirected port. It works fine, but it has very limited notifications.So I removed /x from my command, and the ipp printer was installed as a local printer using an ipp port, instead of as a ipp printer using an ipp port.Live Long and Prosper Edited October 17, 2012 by remush Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now