Microsoft KB Archive/312052

= Error Message: Spoolsv.exe Has Generated Errors and Will Be Closed by Windows =

Article ID: 312052

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows 2000 Professional Edition

-



This article was previously published under Q312052



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
If you open the Printers window or attempt to print from any program, you may receive one of the following error messages:

Spoolsv.exe has generated errors and will be closed by Windows.

or

Printer operation cannot continue due to lack of resources.

or

Subsystem unavailable.



CAUSE
This issue can occur if a printer driver that is installed on the computer is damaged.



RESOLUTION
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To resolve this issue, remove printers and printer drivers, and then delete the items that are under certain keys in the registry. Follow these steps:  If possible, remove any printers that are listed in the Printers window.

To remove a printer, right-click the printer in the Printers window, click Delete, and then click Yes to confirm the deletion. In the Printers window, on the File menu, click Server Properties. On the Drivers tab, remove all of the installed printer drivers.

To remove a printer driver, click the driver, click Remove, and then click Yes to confirm. Start Registry Editor (Regedit.exe). Export the following registry keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print

 Delete any items that are listed under the following keys (do not delete the keys themselves):

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-2

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Environments\Windows NT x86\Drivers\Version-2

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Environments\Windows NT x86\Drivers\Version-3

</li> Delete any non-default items that are listed under the following keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Monitors

The list of Default monitors includes:

<ul> AppleTalk Printing Devices (When Services for Macintosh is installed)</li> BJ Language Monitor</li> Local Port</li> PJL Language Monitor</li> Standard TCP/IP Port</li> USB Monitor</li> Windows NT Fax Monitor (When a Fax Modem is installed)</li></ul>

For additional information about which items are not default, click the article number below to view the article in the Microsoft Knowledge Base:

260142 How to Troubleshoot Windows Printing Problems

</li> Delete any items that are listed under the following keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Printers

</li> Quit Registry Editor.</li> Restart your computer, and then reinstall the necessary printers.</li></ol>

Keywords: kbenv kberrmsg kbprb kbprint KB312052

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.