Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

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

March 15, 2024 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 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.

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\Printers;
  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 PowerShell: 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

4 comments
12
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

Configure NTP Time Source for Active Directory Domain

May 6, 2025

How to Cancel Windows Update Pending Restart Loop

May 6, 2025

View Windows Update History with PowerShell (CMD)

April 30, 2025

Change BIOS from Legacy to UEFI without Reinstalling...

April 21, 2025

Remove ‘Your License isn’t Genuine’ Banner in MS...

April 21, 2025

4 comments

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
Jack August 18, 2024 - 11:19 am

lil over s year now waiting, would love some help please.

Reply
Willy November 21, 2023 - 10:19 am

Thank you for all your valuable informations!

Small typo in the registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printes
should be
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\PrinteRs

Reply
admin November 24, 2023 - 1:44 pm

Thank you, fixed!

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

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

  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025
  • How to Write Logs to the Windows Event Viewer from PowerShell/CMD

    March 3, 2025
  • How to Hide (Block) a Specific Windows Update

    February 25, 2025

Follow us

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

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


Back To Top