October 10, 2011
HP 4100dtn and Windows 7 64 bit
Windows 7: Windows cannot connect to the printer 0x0000007e
To install the HP 4100 on a Windows 7 machine, you need to add it as a local printer first, and then change the port to the shared IP. To do this:
1. Choose to install a “network printer” and select it from the list. Hit next.
2. At this point you can either select to find updated driver from Windows Update or choose “have disc” to manually select the *.inf file that was extracted via the driver download. I actually chose the Windows Update option for fun and grins, and it searched, located, and properly installed the correct drivers for my machine automatically.
3. Print a test page once you complete the rest of the installation screens. Note: Depending on your installation package, you may have slightly different setup screens but I suspect that the steps would be very similar.
-or-
Batch Script
::==============================================
:: R.Drozd 2011
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
goto MENU
:MENU
echo.
echo Choose a printer to install...
echo.
echo 1 HP 4100 PRINTER 1
echo 2 Quit
echo.
:choice
set /P C=[1,2]?
if "%C%"=="2" goto quit
if "%C%"=="1" goto 1
goto choice
:1
SET P1=%NAME
SET PIP1=%1192.168.1.3
SET PNAME1=%"HP Laserjet 4100 Series PCL6"
goto ADDPRINTER
:ADDPRINTER
ECHO %P1%
ECHO %PIP1%
ECHO %PNAME1%
Cscript %windir%\System32\Printing_Admin_Scripts\en-US\Prnport.vbs -a -r IP_%PIP1% -h %PIP1%
ECHO Port added successfully!
ECHO Now adding printer...
rundll32 printui.dll,PrintUIEntry /if /b %P1% /f %windir%\inf\ntprint.inf /r IP_%PIP1% /m %PNAME1%
ECHO Printer added successfully!
pause
goto menu
:quit
exit
:end
Tags: correct drivers, hp 4100 printer, inf file, network printer, scripts