Mapping a printer via the registry

17,263

This works well with UNC path connected printers, but the drivers have to be present on the system in order for it to be seamless.

I've not had the same luck with TCP/IP port connected printers.

Share:
17,263

Related videos on Youtube

13aal
Author by

13aal

Updated on September 18, 2022

Comments

  • 13aal
    13aal over 1 year

    Is it possible to map a printer via the registry in a windows 7 environment?

    What I mean is, you have information on the printer in the registry:

    • List of printers: HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts
    • Default printer: HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
    • Printers themselves: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers
    • More printer info: HKEY_CURRENT_USER\Printers

    There are all these different types of registry entries for printers, so it seems that it would be possible to map the printer by the registry itself. Is this possible?

    • Admin
      Admin about 7 years
    • Admin
      Admin about 7 years
      @JulianKnight that just gives me information on where the keys sit, not if you can map a printer by the registry
    • Admin
      Admin about 7 years
      That's why it isn't an answer ;-) Try adding one the normal way, compare the registry keys, remove it, then add via the registry. You can definitely remotely add a printer using GPO so I fully expect you can do it via registry.
    • Admin
      Admin about 7 years
      @JulianKnight lol smart ass. How can you add through GPO..?
    • Admin
      Admin about 7 years
      Don't know I'm afraid, I'm not an expert in SCOM/SCCM, you'd have to look it up. If you have W7 pro or enterprise, you should have a GPO editor installed.
  • 13aal
    13aal about 7 years
    So I could do it with a UNC printer, as long as I have the path to it? How so?
  • Nicholas D
    Nicholas D about 7 years
    I usually manually connect the printer initially and then export the registry key HKEY_CURRENT_USER\Printers to use for further deployment. The registry key is a bit in depth, so it would be much more difficult to manually create the .reg file that the export creates for ya!
  • 13aal
    13aal about 7 years
    I don't have the option to manually connect the print, I would need to map the printer via IP to the registry
  • Nicholas D
    Nicholas D about 7 years