The new printer status is Offline after you delete a print queue and then restart a Windows-based computer
This article provides a solution to an issue where the new printer status is Offline after you delete a print queue and then restart a Windows-based computer.
Original product version: Windows Server 2012 R2
Original KB number: 2027593
Consider the following scenario:
- You delete a print queue while it is in an Offline status.
- You add a new print queue that has the same name as the old print queue.
- You restart the computer.
In this scenario, the status of the new print queue is displayed as Offline.
This problem occurs if the computer has the following registry value configured when you set the printer to the Offline status:
HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\Print\Printers\<print queue name>
However, this value isn't deleted by the Localspl.dll file when the print queue is deleted. So when you add a print queue that has the same name as the old print queue, the new printer queue inherits the Offline status of the deleted print queue.
To resolve this issue, right-click the new print queue in the Printers and Faxes tool, and then clear the Use Printer Offline setting. This resets the registry key to the correct value. Instead, you can delete the registry key that is mentioned in the Cause section after you delete a print queue but before you add a new print queue of the same name.