uninstall a printer driver from cmd prompt

wmic printer get name
printui.exe /dl /n  "YOUR-PRINTER-NAME"

from here:
https://www.howtoedge.com/properly-remove-or-uninstall-a-printer-driver-on-windows-10/

4] Uninstall a printer driver through Command Prompt

Many times users find it more cozy to perform a task with the Command-line interface. If you are also one of them and prefer to remove the printer driver using the command, follow the steps –

Click on the Start button and type “cmd”.
Right-click on the “Command prompt” and select Run as administrator.
If UAC prompts on the screen, click on the Yes button.
Once the command prompt opens, type the following command-line and then hit Enter –

wmic printer get name

After that, again type the command and then press the Enter key –

printui.exe /dl /n “YOUR-PRINTER-NAME”

In the above command-line, you need to replace YOUR-PRINTER-NAME with the name of your printer.

Once you complete the above steps, the printer that you specified in the command-line will be uninstalled from your device.
5] Using PowerShell Commands

Sometimes users prefer PowerShell to use the Command-line task. You can use the below steps to uninstall a printer from Windows 10 –

Click on the Start button and type PowerShell. 
Right-click on the Windows PowerShell and select Run as administrator.
Click on the Yes button if UAC prompts on the screen.
Once it opens, type the following command and then press the Enter key.

Get-Printer | Format-List Name

Again, type the below command and press Enter to uninstall the Printer.

Remove-Printer -Name "YOUR-PRINTER-NAME"

This will remove the printer from your device. In the above command line, you need to replace YOUR-PRINTER-NAME with the name of your Printer.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值