Software & SaaSEngineering note
"Printer Error" Every Morning on Remote Desktop: When a Redirected Printer Takes Over
Remote Desktop can bring the printers from your own computer into the session and make yours the default. When that redirected printer is broken, every program that prints to the default fails, while the server's own printers work perfectly.
Author
CrpyByte Engineering
Published
Reading time
3 min read
In July a client's staff could not print a payroll form from the payroll program on one of the Windows servers we look after. They reach it over Remote Desktop. The program stopped with "Error 482: Printer error" and printed nothing.
Everything looked healthy
- The Print Spooler service was running, with no jobs stuck in the queue.
- The server's own "Microsoft Print to PDF" printer and its drivers were installed and working.
- The user's saved default printer was that local PDF printer.
So why would a program fail to print? Because it was not printing to the printer the user had chosen. Like many older programs, it sent its forms to whatever the session's default printer is at that moment.
The event log showed the default changing every day
Windows records every change of default printer in the PrintService Admin log (event ID 823). The log showed the same pattern every working day:
| When | Default printer became |
|---|---|
| Morning logon, about 11:00 | Microsoft Print to PDF (redirected 3) (redirected 2) |
| Disconnect, about 18:00 | Microsoft Print to PDF (the server's own) |
"Redirected" means the printer is not on the server. It is a printer from the computer the user connects from, which Remote Desktop brings into the session. By default, Remote Desktop also makes the user's own default printer the default in the session. This one had been redirected twice, the name shows it, and it did not print. Every morning it took over as the default, and the payroll program printed to it and failed.
The fix: one policy
Windows has a policy for exactly this: Do not set default client printer to be default printer in a session. Redirected printers still appear in the session, so a user can still pick their own printer, but the server keeps its own default.
Group Policy:
Computer Configuration > Administrative Templates > Windows Components >
Remote Desktop Services > Remote Desktop Session Host > Printer Redirection >
Do not set default client printer to be default printer in a session = Enabled
Same setting in the registry:
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
fForceClientLptDef (DWORD) = 0On this server the value did not exist, so the Remote Desktop default applied. We set it on 22 July. It takes effect at the next logon. On 23 July the user printed the form again and it worked. To undo it, set the value to 1 or delete it.
What we did not do
- We did not turn off printer redirection. Staff may still want to print to their own printers. Only the default changed.
- We did not reinstall drivers or restart the spooler. Nothing was wrong with them, and restarting the spooler on a shared server interrupts everyone's printing.
- We backed up the payroll data first, to a dated folder on a second disk, before changing anything on the server.
Checklist for printing errors on a Remote Desktop server
- Ask what the default printer is in the session, not on the user's own computer. In the session, open Settings, then Printers & scanners.
- Look for "(redirected)" in the name. A redirected default is the first suspect when only some days or some users fail.
- Read the PrintService Admin log. Event 823 shows each default change and when it happened. A change at every logon points straight at redirection.
- Set the policy above if programs must print to the server's own printer, and keep redirection on for everything else.
- Change one thing at a time and test with the real program and the real form, not a test page.
If printing, drives or logons on your Remote Desktop servers fail in ways nobody can explain, tell us what you see. We will find the cause and leave the rest of the setup as it was.