Removing printers from regedit on windows 7 RRS feed

  • General discussion

  • I want to create a batch file to remove network printers from a windows 7 machine.  Removing the registry keys from HKLM\System\current control set\control\print\printers does not work like it did in Windows XP.  How can I remove the printers from the registry on Windows 7?
    • Changed type Leo Huang Tuesday, August 31, 2010 1:06 AM
    Friday, August 20, 2010 1:15 PM

All replies

  • Hi Jeff, you can go to HKEY_CURRENT_USER\Printers\Connections and you will see the printers that you can connect.  You can remove the network printers by delete the registry within the printer name.

    Note: You’d better backup your registry before you delete it.

    Monday, August 23, 2010 7:34 AM

  • Step1. Login as the account that is having problems removing a printer. If the account is not an admin account, I would recommend making it one to make things easier. (Regedit requires admin rights along w/stopping and starting of services; which we will be doing).

    Step2. Open the Registry Editor. You can do this by going to your Start Menu > Run and then type "regedit" in the run box and hit Enter.

    Step3. In the Registry Editor, Expand the My Computer area. Then go to this location: HKEY_CURRENT_USER > Printers > Connections

    Hopefully you will see the printer that you cannot delete. Click on the printer name and hit the delete button.

    There is also one more spot to remove the printer from in the Registry.

    Go to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > Print > Providers > LanMan Print Services > Servers > Printers

    Hopefully you will see another folder below the Printers one that will refer to the name of the print server hosting the printer. If you do not have any other network printers on that server, you can delete the folder of the print server. (ie my printers are on my server called my-print; i would then see a my-print folder and under that my actual printer; ). Otherwise, find the printer under the print server folder (ie my-print) and delete the printer.

    To finish the registry edits, close the Registry Editor and then reboot.

    Hopefully that network printer will no longer show.

    Again, like most things that are done in the registry editor, BE CAREFUL on what you delete or do not. Bad registry edits can cause your XP machine not to boot or BSOD.
    Wednesday, August 25, 2010 6:11 AM
  • Thank you for responding but Removing the printers from HKEY_Current_user is not sufficent. 

    And there are no printers listed in HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > Print > Providers > LanMan Print Services > Servers > Printers


    Monday, August 30, 2010 1:23 PM
  • More probable location to look for drivers is:

    HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > Print >Environments >Windows x64 >Drivers > Version-3

    Friday, November 30, 2012 11:25 AM
  • HKLM\SYSTEM\CurrentControlSet\Control\Print\Environments may contain several subkeys for other driver types (32 and 64-bit, Itanium, etc.). To be thorough, make sure you check them all. I have seen a single dll referenced in one of these subkeys cause apps to crash.
    • Edited by PalanthisIT Thursday, July 14, 2016 6:51 AM Clarification
    Thursday, July 14, 2016 6:50 AM