We help IT Professionals succeed at work.
Get Started

Windows 7 (x64) - Modifying Printer .INF files

Ecompro asked
Last Modified: 2012-07-22
For years if we needed to install a printer that has a slightly different naming convention for different versions of Windows, we could modify .ini files in c:\windows\inf.  Here's a specific example.

Windows XP and Server 2003 uses the name "HP Laserjet 4200 PCL 6" and that's the driver on our Server 2003 domain print server.  In Windows 7 the naming convention is "HP Laserjet 4200/4300 PCL6".

In the good old days pre-Vista/7, we could modify the .inf file's entry.  In Windows 7 and Server 2008, the file holding this entry is c:\windows\inf\prnhp002.inf.  The specific entry is:

"HP LaserJet 4200/4300 PCL6"           = hpmcpap6.gpd.Win7,Hewlett-PackardHP_La4AE5,Hewlett-PackardHP_La8AB4,HP_LaserJet_4200/4300_PCL6 ; Hardware ID

Open in new window

Now when I modify that line to read as we need it...
"HP LaserJet 4200 PCL 6"           = hpmcpap6.gpd.Win7,Hewlett-PackardHP_La4AE5,Hewlett-PackardHP_La8AB4,HP_LaserJet_4200/4300_PCL6 ; Hardware ID

Open in new window

.... so the PC's driver name matches the driver name on the print server (allowing us to map that printer on the PC) for some reason Windows 7 "Add a Printer" wizard (where you select the make and model of the printer to add) is still showing the OLD name "HP LaserJet 4200/4300 PCL6", even AFTER the .inf file is changed and the print spooler service is restarted.

What is the trick these days?  We can't change the print server, so the naming change has to be made on the client PC.  But our changes to the INF files are NOT being reflected in the list of available print drivers in the Add/Remove printers applet.

Advice, please?
Watch Question
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE