You are currently offline, waiting for your internet to reconnect

How to Manually Delete Print Shares or Printers

This article was previously published under Q102116
SUMMARY
If you are troubleshooting Windows NT or applications that are runningin Windows NT, you may need to verify that a print share or installedprinter has been completely deleted. The following information shows thedefault locations in the registry database for references to installedprinters or print shares in Windows NT versions 3.1, 3.5, 3.51 and 4.0.
MORE INFORMATION
It is rarely necessary to remove a printer by altering the registry. Inmost cases, you can remove a printer in Print Manager or the Printerfolder using the Remove or Delete Printer option. This immediately removesthe printer, but internally the spooler marks the printer for deletion anddoes not actually delete the printer until the next time that the SpoolerService starts. Therefore, you should stop and restart the Spooler Servicebefore attempting to recreate a printer, or before attempting to remove aprinter port that a recently deleted printer was using. Also, you shouldclose Print Manager or the Printers folder before restarting the Spooler.

In summary, if you use the Print Manager or Printers folder to remove aprinter or printer port, then close Print Manager or the Printers folder,stop and restart the Spooler Service. If you reopen Print Manager or thePrinters folder, and the printer or port is still present, then you shouldconsider removing the printer or port by altering the registry.

NOTE: ALL references must be deleted to ensure complete removal of the print share or installed printer. You must also either Stop and Start the Spooler Service or shutdown and restart Windows NT for these changes totake effect.

Modifying the Registry

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
  1. Run Registry Editor (regedt32.exe).
  2. Go to the appropriate registry location mentioned below for yourversion of Windows NT.
  3. Delete the registry information for printer(s) and/or server(s) you want to remove.

    NOTE: It is recommended that you first save each registry key before you delete it.
The following registry paths apply to Intel-based (x86) computers. If youare running an Alpha-, MIPS-, or PPC-based computer, substitute the x86portion of the entries below with the correct processor type (Alpha_AXP,R4000, or PowerPC). Text enclosed in angle brackets (<>) or presented in italics refers to machine- specific or printer names. "\\server name\Printer" refers tothe universal naming convention (UNC) path to the specific print share.

Windows NT 4.0

If the printer is installed locally (My Computer), the printer informationis located in the following registry keys:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-2\Printer Name

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Printer Name
If the printer is installed as a network printer (Network printer serveror \\server name), the printer information is located in the following registry keys:
HKEY_CURRENT_USER\Printers\Connections\server name

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers\server name\Printers\Printer Name

Windows NT 3.51

If the printer is installed locally (Create Printer), the printerinformation will be located in the following registry keys:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-1\Printer Name

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Printer Name
If the printer is installed as a network printer (Connect to Printer), theprinter information is located in the following registry keys:
HKEY_CURRENT_USER\Printers\Connections\server name

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers\server name\Printers\Printer Name

Windows NT 3.5

If the printer was installed from Print Manager using the Connect ToPrinter option, the printer information will be located in the followingkeys:
HKEY_USERS\S-user id number\Printers\Connections\server name\Printer Name

HKEY_CURRENT_USER\Printers\Connections\\server name\Printer Name

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\Current Version\Devices

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\Current Version \PrinterPorts
If the printer was installed from Print Manager using the Create Printeroption, the printer information will be located in the following keys:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\Current Version\Print Manager\Printers

HKEY_USERS\SID Number\SOFTWARE\Microsoft\Windows NT\Current Version\Print Manager\Printers

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\Current Version\Devices

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\Current Version\Printer Ports

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-1

Windows NT 3.1

If the printer was installed from Print Manager using the Connect ToPrinter option, the printer information will be located in the followingkeys:
HKEY_USERS\S-user id number\Printers\Connections\server name\Printer Name

HKEY_CURRENT_USER\Printers\Connections \\server name\Printer Name

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Devices

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\PrinterPorts
If the printer was installed from Print Manager using the Create Printeroption, the printer information will be located in the following keys:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\Current Version\Print Manager\Printers

HKEY_USERS\SID Number\SOFTWARE\Microsoft\Windows NT\Current Version\Print Manager\Printers

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Devices

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\Printer Ports

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers
There may also be references to printers in other ControlSets, such asControlSet001, but because this may be the Control Set for the LastKnown Good Configuration, it should not be modified.

NOTE: If you intend to manually remove a printer driver you must do so before manually removing the printer and shares, because the registryentry is deleted when you manuallyremove the printer and shares.
troubleshoot trouble shoot tshooter tshoot uninstall System error 1801 has occurred
Properties

Article ID: 102116 - Last Review: 05/24/2007 03:18:40 - Revision: 2.3

  • Microsoft Windows NT Advanced Server 3.1
  • Microsoft Windows NT Server 3.5
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0 Standard Edition
  • Microsoft Windows NT Workstation 3.1
  • Microsoft Windows NT Workstation 3.5
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows NT Advanced Server 3.1
  • kbinfo kbprint KB102116
Feedback