Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / How to Force Remove a Printer That Won’t Uninstall on Windows

June 8, 2023 PowerShellQuestions and AnswersWindows 10Windows 11

How to Force Remove a Printer That Won’t Uninstall on Windows

I have often encountered situations where Windows could not remove installed printers. A printer may not appear in the Windows Control Panel (but it may be available in the Print dialog box in all applications), or you may get various errors when you try to remove a printer (no access, the printer port is in use, a print queue error, etc.). In this article, we’ll look at how to completely remove a printer on Windows 10 and 11.

Contents:
  • How to Properly Remove a Printer on Windows?
  • Can’t Remove the Printer in Windows: How to Force Uninstall?
  • Remove or Uninstall a Printer Driver on Windows

How to Properly Remove a Printer on Windows?

First of all, there are the standard Windows printer removal methods, which you should definitely try:

  1. Open Settings -> Devices -> Printers and Scanners (or run a quick access URI command: ms-settings:printers);
  2. Select a printer you want to remove and click Remove Device; remove printer in windows
  3. Confirm the printer removal.
If you receive the error “The local print spooler service is not running” when removing a printer, check the spooler service settings as follows.

You can also remove a printer from the classic Windows Control Panel:

  1. Run the command: control /name Microsoft.DevicesAndPrinters
  2. Select a printer from the list and click Remove Device. control panel - remove printer device

Note that if there are active tasks in the print queue, you won’t be able to uninstall the printer until you clear the print queue. To do it, locate the printer in the Control Panel and select Open queue. Then click Printer -> Cancel All Documents.

Clear Print Queue in Windows 10

Try to remove the printer after you clear the print queue.

Note that network printers can be installed on domain computers using GPO. Depending on the GPO settings, you may not be able to remove such printers.

You can use the Print Management MMC snap-in to remove a printer (it helped me remove a printer that was not showing up in the Windows Control Panel several times).

  1. Open the console using the command: printmanagement.msc
  2. Navigate to Print Manager -> Print Servers -> select your computer -> Printers;
  3. Select your printer and click Delete in the context menu. Delete printer using Print Management MMC snap-in
In Windows, you can remove printers using built-in commands (based on VBS scripts).

List installed printers:

cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -l

Remove a specific printer:

cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "HP LaserJet Pro MFP M130"

Or you can use the built-in PowerShell module to uninstall a printer:

Remove-Printer -Name "HP LaserJet Pro MFP M130"

Can’t Remove the Printer in Windows: How to Force Uninstall?

If for some reason a printer is not displayed in the Control Panel, or you cannot remove it due to an error, you can force it to be removed.

The first step is to clear the print queue by using the commands:

net stop spooler
del %systemroot%\system32\spool\printers\*.shd /F /S /Q
del %systemroot%\system32\spool\printers\*.spl /F /S /Q
net start spooler

These commands delete all *.shd and *.spl files from the %systemroot%\system32\spool\printers directory.

Then you may delete a printer entry from the Windows registry:

  1. Open regedit.exe;
  2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printes;
  3. Find the registry sub-key with the name of your printer (in my example, it is HP LaserJet Pro MFP M130fn (Copy 1);
  4. Delete the registry key for the printer; Delete a Printer from the Windows Registry
  5. Restart your computer and make sure that the printer has disappeared from the Control Panel. If it is still displayed, but its status has changed to Not Connected, just remove it.

You may receive the following error message when removing a printer:

This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator.

Remove printer error: This operation has been cancelled due to restrictions

In this case, check that the Group Policy option preventing printer removal is enabled (Prevent deletion of printers). It can be found in the User Configuration –> Administrative Templates –> Control Panel –> Printers section of the Local Group Policy Editor (gpedit.msc). GPO option: Prevent deletion of printers

On the domain computer, use the gpresult tool to check the resulting GPO settings.

If the policy is disabled or not configured, you will need to remove hidden printers and print queues using the Device Manager. This problem often occurs with shared network printers.

  1. Open the Device Manager (devmgmt.msc);
  2. Enable View -> Show hidden devices;
  3. Expand Print queues and Printers sections and remove any printers you do not need. Delete printers and print queues from Device Manager

Remove or Uninstall a Printer Driver on Windows

When you remove a printer from the Control Panel, its drivers remain in the Windows Drive Store. You can clean up the Drive Store by removing the unused printer drivers from your computer:

  1. Open the services.msc console and restart the Print Spooler. You may restart the service using the PowerShell command: Restart-Service spooler -Verbose
  2. Open the Print Management snap-in: printmanagement.msc;
  3. Expand Print Manager -> Print Servers -> select your computer -> Drivers;
  4. All installed printer drivers are displayed in the list;
  5. Right-click the driver you want to uninstall and select Remove driver package; Remove printer driver package on Windows
  6. Confirm the removal of the driver, its inf file, and any associated files. uninstall printer driver and delete inf files

You can also remove unnecessary drivers from the Print Server Properties. To do this, run the printui /s /t2 command, select the printer driver, and click Delete. remove printer in windows 10

1 comment
4
Facebook Twitter Google + Pinterest
previous post
How to Block Sender Domain or Email Address in Exchange and Microsoft 365
next post
Export-CSV: Output Data to CSV File Using PowerShell

Related Reading

How to Connect VPN Before Windows Logon

November 14, 2023

Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

November 7, 2023

Send Emails with Microsoft Graph API and PowerShell

November 6, 2023

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

1 comment

jack August 9, 2023 - 4:59 pm

Thank you so much you gave me so much information today I have spent months on this going from forum to forum to forum and absolutely never a reply and reading endlessly on the web without resolve .

I have a windows 732 bit I am constantly bothered by нет fxutil and fxsapi….. errors on my machine I realized that when windows 7 was new that faxes were a thing of the current but they are now a thing of the past and I have uninstalled my fax months ago and I still have these errors I have tried to dlsm and I have the accurate version but that throws errors too.

🔷🔷 I would sure love some guidance to get rid of these 2 errors without doing a clean install or a repair install I’m not ready for that I’ve spent months and hours on this already I would just love to know how to go into the registry back it up and then delete the references that point to the fax printers thank you so much and God bless

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • How to Connect VPN Before Windows Logon

    November 14, 2023
  • Removing Azure Arc Setup Feature on Windows Server 2022

    November 9, 2023
  • Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

    November 7, 2023
  • Send Emails with Microsoft Graph API and PowerShell

    November 6, 2023
  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Fix: Remote Desktop Licensing Mode is not Configured
  • Configuring Port Forwarding in Windows
  • Manage Windows Updates with PSWindowsUpdate PowerShell Module
  • Start Menu or Taskbar Search Not Working in Windows 10/11
  • How to Install Remote Server Administration Tools (RSAT) on Windows
  • How to Delete Old User Profiles in Windows
  • Adding Drivers into VMWare ESXi Installation Image
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top