Windows network printer changes in CMD

article #1026, updated 2307 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: