How to add and remove a printer via Powershell in Windows
Click on the Start button and type powershell. Right click on powershell and click run as administrator.
To Add a printer (Local)
Type Add-Printer -Name “PrinterName” -DriverName “HP LaserJet 2300” -Port USB001
To Add a printer (Network)
Type Add-Printer -ConnectionName \\printServer\printerName
To Remove a printer
Type Remove-Printer -Name “PrinterName”
To List printers
Type Get-Printer | Format-List NameThis Powershell command is extremely helpful in situations where you can’t delete the printer via normal methods.
This is a great link to MS with the command lines/syntax.
Extra Info:
I have written a couple of articles which explain how to:
Set printing preferences via command line in Windows
Set the default printer via command line in Windows
Speed up a printer install “device setup in progress” in Windows 10
Did our article help you? Here are some ways you can help us.
Have a look at our IT Tech Tool Kit List, need ideas on what to buy? I have listed my top 30 tools here.
2 Comments
Pingback:
Pingback: