Category: Printers & Printing

Windows printer management using built-in VBS scripts at the command line
article #837, updated 40 days ago

From Windows 7 on, Microsoft has thoughtfully provided us with VBS scripts for command-line printer management, here:


In this dot on the globe, we go to the following system folder to see them all, there are several:


To delete printer named ASDF:

cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -d -p "ASDF"

Categories:   Printers & Printing   


Setting Up Printers by Windows Group Policy the Simplest Way
article #1113, updated 143 days ago

There are multiple ways to set printers up by group policy in Windows. There is a printer administration role which can make things easier or harder, depending on how well everything is working. The simplest way, is to open the Group Policy Management Console from a domain controller, open up an appropriate policy, and open it to here:

then right-click in the white box, you’ll get a menu, choose “New”, choose “Shared Printer”, Action should be “Update” or “Replace” if “Update” doesn’t work, and you’ll choose the printer by “Share Path”. You can leave everything else alone unless you need something special. Sometimes it works better to do a Delete and then Create for each printer. The vagueness here is due to unknown but widely experienced vagaries in behavior of Group Policy which are addressed in no known documentation.

Please do note that we set these up under “User Configuration” not “Computer Configuration”. It is possible to do it under Computer, but removals can be far more difficult if we do, there have been messes seen.

Categories:   Group Policy   Printers & Printing


Canon MFP User Code Printing Requires a Service
article #1071, updated 229 days ago

If there is a Canon MFP, and the desire is to implement user codes, you need more than just a driver. You need the current UFR II sort of driver, and very significantly, you need something called the “Canon Driver Information Assist Service”. This is in the “misc” folder in the driver package, it’s called DIAS for short. This is a service which makes network user codes flow from desktop to server to MFP. Without it, you will get errors as user code lookup attempts fail.

Categories:   Printers & Printing   


Windows network printer changes in CMD
article #1026, updated 390 days ago

Very easy:

Quietly install a network printer – per user

rundll32 printui.dll,PrintUIEntry /q /in /n "\\machine\printer"

Quietly delete a named network printer – per user

rundll32 printui.dll,PrintUIEntry /q /dn /n "\\machine\printer"

Set default printer

rundll32 printui.dll,PrintUIEntry /y /n "\\machine\printer"

Quietly install a network printer – per machine

rundll32 printui.dll PrintUIEntry /q /ga /n "\\machine\printer"

Quietly delete a network printer – per machine

rundll32 printui.dll PrintUIEntry /q /gd /n "\\machine\printer"

Quietly delete a specific printer driver

rundll32 printui.dll,PrintUIEntry /q /dd /m "PrinterDriver"

Categories:   Printers & Printing   


Cannot delete printers in Vista, 7, and Above
article #691, updated 1032 days ago

If you get “permission denied” trying to delete printers, delete everything relevant in all of these places (leaving the folders of course):

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Devices
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Printers\PushedPrinterConnectionStore\*
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Connections

restart the spooler, refresh the Devices and Printers window, and you may be done, the involved printers will probably vanish. If they don’t they will be deletable at this point. If there are multiple user profiles on the PC, you will have to delete them in the other profiles. On some machines, some of the folders won’t exist, and this is perfectly fine.

Categories:   Printers & Printing   Windows OS-Level Issues


Change the Printer Spooler Folder
article #128, updated 1207 days ago

In Server 2008 R2:

  1. Click Start, Administrative Tools, Print Management.
  2. Open up Print Servers.
  3. Right-click on the server whose print server spool you wish to change.
  4. Click Advanced.
  5. Set your new folder.

In Vista/2008:

  1. Open the Control Panel.
  2. In ‘Hardware and Sound’, select ‘Printer’.
  3. On the left-hand tree menu, right click on ‘Printers’, and select ‘Server Properties’.
  4. In the ‘Print Server Properties’ window, select the ‘Advanced’ tab.
  5. Set a new path for the spool folder.

Categories:   Printers & Printing   


When IP Printers Won't Delete
article #720, updated 1286 days ago

  1. Change the Port, to “FILE:”, and then try to delete it again. If that doesn’t work:
  2. Go to this registry location:

and delete the ones that you want gone. Then restart the Windows service named ‘spooler’.

Categories:   Printers & Printing   Cleanup


IPP in Vista, Windows 7, and Server 2008
article #690, updated 1414 days ago

It has to be installed:

Categories:   Printers & Printing   Windows OS-Level Issues


Clear Windows Print Queue (Spooler) Manually
article #671, updated 1457 days ago

Here is a simple procedure for CMD, it works as long as the queue location was not changed:

net stop spooler
del /F /Q %systemroot%\System32\spool\PRINTERS\*
net start spooler

Categories:   Printers & Printing   Windows OS-Level Issues


Windows 7 default printer changing itself automatically
article #622, updated 1540 days ago

Remove old obsolete printer connections here:

HKEY_USERS\<the user's SID>\Printers\Connections

and here:

HKEY_USERS\<the user's SID>\Printers\Settings

and the problem goes away.

Categories:   Printers & Printing   Windows OS-Level Issues