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 Completely Remove/Uninstall a Driver in Windows

August 14, 2023 PowerShellQuestions and AnswersWindows 10Windows 11Windows Server 2019

How to Completely Remove/Uninstall a Driver in Windows

This article describes how to uninstall hardware and printer drivers in Windows 10 and 11. Whenever you connect a new device to your computer, Windows tries to automatically find and download (or update) the appropriate drivers via Windows Update. Over time, this could result in a large number of unused driver files being stored in the C:\Windows\System32\DriverStore directory.

There are several ways to remove a driver from the Windows driver repository (DriverStore).

Contents:
  • How to Completely Remove a Print Driver from Windows
  • Using Device Manager to Uninstall Drivers in Windows
  • Remove the Device Driver Using the Windows Command Prompt

How to Completely Remove a Print Driver from Windows

Even if you have removed a printer from Windows using the Control Panel, its driver still remains installed on your computer. To completely uninstall printer drivers in Windows, follow the steps below.

  1. Open the Print Management Console printmanagement.msc (if it’s not installed on your computer, you can install it from RSAT using the command: dism /Online /add-Capability /CapabilityName:Print.Management.Console~~~~0.0.1.0 );
  2. Go to Print Manager -> Print Servers -> your computer -> Drivers;
  3. All installed printer drivers are listed here. Click on the driver you want to uninstall and select Remove driver package; Remove printer driver package in Windows

You can also remove unused drivers from the print server properties. To do this, run the command printui /s /t2, select the printer driver, then click Remove and select Remove driver and driver package.

Uninstall printer driver package

You can use the Remove-PrinterDriver cmdlet from the built-in printer management PowerShell module to remove a specific driver:

Remove-PrinterDriver -Name "HP Universal Printing PCL 6"

Using Device Manager to Uninstall Drivers in Windows

Before uninstalling any driver, you must disconnect any devices that may use it. Once that’s done, you can proceed with the following steps:

  1. Open the Device Manager console (devmgmt.msc);
  2. Go to the View section and enable the Show hidden device option; Show hidden devices in Device Manager
    This mode allows you to remove hidden (ghost) network adapters.
  3. Now find your device in the list, right-click on it, and select Uninstall device; Uninstall device in Device Manager
    If there is no driver installed for the device, it will show up in the Device Manager with a yellow exclamation mark. Here are the instructions for finding a driver for an unknown device in Windows.
  4. To remove both the hardware and the driver from the driver storage, check the option Delete the driver software for this device, then click Uninstall. Completely delete driver from Windows

Remove the Device Driver Using the Windows Command Prompt

To list the third-party drivers installed in Windows, run the command:

pnputil /enum-drivers

or

dism /online /get-drivers /format:table

cmd: list installed driver in drivestoreon Windows with DISM

You can get a list of devices with drivers installed that are not currently connected to your computer by using another command:

pnputil /enum-devices /disconnected

You can also find old and unused drivers (driver versions) in the Windows DriveStore.

This way, you get to see both the INF file name under which the driver is installed in the repository (Published name in oem#.inf format) and the Original File Name.

Find the required driver in the list and remember the file name (in oem#.inf format). To uninstall the driver, run the following command at a command prompt:

pnputil /delete-driver <Published Name> /uninstall /force

Before you do this, you can make a backup of all the drivers you have installed in Windows.

For example,

pnputil /delete-driver oem15.inf /uninstall /force

You can use PowerShell to view a complete list of installed drivers (including system drivers):

Get-WmiObject Win32_PnPSignedDriver | select DeviceName,InfName

PowerShell - list drivers - Get-WmiObject Win32_PnPSignedDriver

If you cannot uninstall the driver from the online Windows image, you can try uninstalling it from an offline image.

Boot your computer into the Windows Recovery (WinRE) or WinPE environment. List the drivers in the offline Windows image:

DISM /Image:C:\ /Get-Drivers

Where C:\ is a system partition.

You can uninstall the specific driver from the Win image using DISM:

DISM /Image:C:\ /remove-driver /driver:oem11.inf

You must use DISM to uninstall the driver. If you try to remove a driver in an offline Windows image from a WinPE environment using PnpUtil.exe, you will get an error:

Failed to delete driver package: The specified file is not an installed OEM INF.

Or specify the path to the INF file manually::

DISM /Image:C:\ /Remove-Driver /Driver:<inf_file_full_path>

You can also use DISM to add drivers to the Windows ISO/WIM installation image.

0 comment
0
Facebook Twitter Google + Pinterest
previous post
Monitoring Domain Name Expiration Date with Zabbix
next post
Allow Anonymous Access to Shared Folder or Printer on Windows

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

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