DEV Community

Serguey Shinder
Serguey Shinder

Posted on

Our Delivery Notes Kept Printing in the Wrong Office Because Windows Had Been Choosing Our Default Printer

At our largest depot, the transport office prints a delivery note for every load before the lorry leaves. The note comes out of a printer in the loading bay, where the driver collects it with his keys. The transport system does not ask where to print. It sends each note to the PC's default printer, and the default had always been the loading bay.

Last winter, notes started appearing on the laser printer in the transport office instead, forty metres and two doors away. Not every time, and not on every PC. Drivers waited at an empty tray, someone eventually walked across, and the lorry left ten or fifteen minutes late. Over a month, the depot logged thirty one late departures it blamed on printing.

Our engineers visited three times. Each time they found the loading bay printer set as the default, printed a test note to it, and closed the ticket. The fault never happened while they were there.

The cause was a Windows setting called Let Windows manage my default printer. When it is on, Windows makes the default whichever printer the user last printed to at their current location. It had been off on the old PCs, which were built from an image that predated it. The new PCs we rolled out in the autumn had it on, as Windows does unless told otherwise. So whenever a planner printed a customer letter or a route sheet in the office, the next delivery note followed it there. When an engineer printed a test note to the loading bay printer, he fixed the fault himself without knowing it.

We switched the setting off across the estate with the group policy that exists for it, Turn off Windows default printer management. More importantly, we asked our transport system's supplier to let each PC name the printer for delivery notes explicitly, so a document that decides whether a lorry leaves no longer depends on a default anyone can change by printing something else.

The fault was not intermittent. It depended on what had been printed last, and nobody had thought to ask. When a problem disappears while you are watching, look for what your own visit changed.

– Serguey Shinder

Top comments (0)