Skip to content

PrintUIEntry command builder

Add, remove and fix printers with printui

Pick what to do: connect a shared printer for one person or every user, delete a printer or a driver, set the default, print a test page. Get the rundll32 printui.dll,PrintUIEntry line for Command Prompt or PowerShell, the line that undoes it, and what printui's error code means. It runs in your browser: nothing you type is sent to us.

Adding the copy room printer from print01 for every user is an example. Pick what you want to do.

What to do

Its computer name, with or without \\ in front.

As the server shares it, spaces included.

Where you will paste it

Paste this in Command Prompt

Search Start for Command Prompt, right-click it and choose Run as administrator.

The command
rundll32 printui.dll,PrintUIEntry /ga /n "\\print01\Copy Room Colour"
net stop spooler
net start spooler
  1. 1Adds the shared printer for everyone who signs in to this computer.
  2. 2Stops the Print Spooler service.
  3. 3Starts it again, so the change shows now instead of at the next sign-in.

There is no PowerShell cmdlet for this: Add-Printer -ConnectionName only adds it for the person running it.

To see what /ga has added, look under HKLM\SYSTEM\CurrentControlSet\Control\Print\Connections; each key is one server and share.

/ga only adds printers shared from a print server, never a printer by IP address. Each user's computer must be able to reach the server.

To undo it, and the PowerShell cmdlet

  • The undo

    rundll32 printui.dll,PrintUIEntry /gd /n "\\print01\Copy Room Colour"

    Takes it off for every user, at their next sign-in or spooler restart.

Read printui's error

Type the code or the words from the pop-up, such as 0x00000709 or Access is denied. The example is the error a wrong printer name gives.

Windows has no printer by that name. Usually a typo, a missing \\server\ in front of a shared printer, or Windows managing the default itself.

List the names exactly as Windows has them and copy one. For a default printer, also turn off Let Windows manage my default printer.

Get-Printer | Format-List Name

When printui does not do what it should

printui talks to the print spooler, which fetches each print driver from the print server and keeps the default printer.

  • /ga ran but the printer is not there

    /ga adds it at each user's next sign-in. Restart the Print Spooler service to see it now. It only works for a printer shared from a print server, written \\server\share, never an IP address.

  • Operation could not be completed, 0x00000709

    Windows has no printer by that name. Copy the name from Get-Printer exactly, with \\server\ in front for a shared one. For /y, also turn off Let Windows manage my default printer.

  • Nothing happens in PowerShell

    PowerShell splits printui.dll,PrintUIEntry at the comma. Keep it in single quotes, as the PowerShell line on this page does, or run the line in Command Prompt.

  • The driver is in use, 0x00000bb9

    A printer still uses it. Delete those printers first, restart the spooler, then delete the driver with /dd or Remove-PrinterDriver.

Add the printers once, not on every computer.

printui adds a printer one computer at a time. In KyberCopy the copy room's printers are added once, on the relay, and staff send jobs from any device with no driver or connection to set up.

Book a demo