PrintNightmare and Point and Print

PrintNightmare: why printer driver installs ask for an administrator

Since Microsoft's PrintNightmare fixes in 2021, Windows requires administrator rights to install or update a printer driver through Point and Print, so standard users get a prompt or an error. Xenoprint avoids the prompt without weakening that protection: its agent installs only Microsoft-certified drivers itself, as SYSTEM.

Last updated

What was PrintNightmare?

PrintNightmare is the name given to a set of Windows Print Spooler vulnerabilities disclosed in 2021, including CVE-2021-34527 and CVE-2021-34481. The print spooler runs with full control of the machine and loads printer drivers into itself, so a way to get a malicious driver installed was a way to run code as SYSTEM.

What is Point and Print?

Point and Print is the Windows feature that downloads and installs a printer's driver from a print server when a user connects to a shared printer, so the user does not have to find the driver themselves. It was one of the routes PrintNightmare used.

What changed in August 2021?

Installing printer drivers through Point and Print now needs administrator rights by default.

Microsoft's updates from August 10, 2021 set the policy RestrictDriverInstallationToAdministrators to 1 by default. A standard user who connects to a shared printer whose driver is not already on the machine, or whose driver has been updated on the server, is asked for administrator credentials or sees an error. Microsoft warns that setting it back to 0 leaves machines vulnerable, and that no combination of other settings is equivalent to leaving it on.

Where are Point and Print restrictions in Group Policy?

Under Computer Configuration, Administrative Templates, Printers.

"Point and Print Restrictions" sets which print servers users may connect to and whether Windows warns or asks for elevation when a driver is installed or updated. "Limits print driver installation to Administrators", added in the October 2021 updates, is the Group Policy form of RestrictDriverInstallationToAdministrators; set to Enabled, it keeps driver installs to administrators. Microsoft's advice is to leave that protection on.

Why does a printer show the Microsoft enhanced Point and Print compatibility driver?

Because Windows connected to a shared printer whose server uses a newer (v4) driver and found no matching driver on the PC, so it fell back to a generic driver that ships with Windows.

With that driver, the print server does the rendering, and the PC gets only basic printing options. A printer installed on the PC by IP address, with the manufacturer's own driver, does not go through Point and Print, so the compatibility driver never comes into it.

How does Xenoprint install drivers without the prompt?

The user never installs a driver. The Xenoprint agent, a Windows service running as SYSTEM, installs it before the printer is added.

Because the agent already has the rights the restriction asks for, there is nothing to relax: leave RestrictDriverInstallationToAdministrators at 1. That only shifts the question to which drivers the agent will install, so it is strict about that.

Which drivers will the agent install?

Only drivers certified by Microsoft through its Windows Hardware Quality Labs program (WHQL), and drivers that are part of Windows. Before a package reaches Windows' own installer, the agent checks the signature on the package's catalog file, the file Windows uses to vouch for every file in a driver package. All three of these must be true:

  1. Windows reports the catalog's signature as valid.
  2. The certificate chain ends at one of Microsoft's own root certificates, identified by thumbprint, since anyone can put "Microsoft" in a certificate's name.
  3. The signing certificate's purpose is Microsoft driver certification (WHQL) or Windows' own components.

Refused before anything is installed:

  • unsigned packages, including any whose setup file (INF) names no catalog;
  • packages signed with a self-signed certificate or a company's own certificate authority, even one the machine trusts;
  • packages Microsoft signed through attestation only, which it does without testing the driver.

A refusal names who signed the package, so you can see what was rejected. The rule is built into the agent itself, so neither our server nor anyone who controls it can widen it. Each package is also checked against the SHA-256 hash recorded when it was uploaded, so it cannot be changed on the way to the machine.

What Xenoprint does not do

It does not patch Windows or the print spooler, and it does not make an unpatched machine safe. Keep Windows updated. It covers the printers Xenoprint deploys; a shared printer someone adds by hand still goes through Point and Print as before.

More on how drivers fit into deployment: deploying printers with Group Policy, Intune printer deployment and adding a printer and its driver with PowerShell.

Questions

Does Xenoprint fix PrintNightmare driver install errors?

Yes, for the printers Xenoprint deploys. The agent installs the driver itself as SYSTEM, so users never see the administrator prompt, and Point and Print restrictions stay at their secure default. It does not change how shared printers added by hand behave.

Do I need to turn off Point and Print restrictions?

No. Leave RestrictDriverInstallationToAdministrators at 1, its default since August 2021. Microsoft says no combination of other settings is as safe as leaving it on. The agent installs drivers as SYSTEM, so users never have to.

What is a WHQL driver?

A driver that passed testing in Microsoft's Windows Hardware Quality Labs program and was then signed by Microsoft. Most printer manufacturers publish their standard Windows drivers this way. The other drivers Xenoprint accepts are the ones that ship with Windows.

Can users still add their own printers?

Only if you allow it. Xenoprint can set the Windows policies that stop users adding printers and keep driver installation to administrators, for a client or for one machine. Printers already on the machine are left in place.

Try it on one site

Free for 30 days during the beta, with unlimited agents. No card needed.