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 Disable Automatic Driver Updates on Windows 10/11?

February 27, 2023 Group PoliciesPowerShellWindows 10Windows 11

How to Disable Automatic Driver Updates on Windows 10/11?

When you connect a new device to your computer, laptop, or tablet, Windows tries to automatically download and install a corresponding hardware driver. Later, the operating system will automatically update the device driver through Windows Update. In most cases, this approach is optimal, since guarantees the installation of the latest driver versions that have been verified by Microsoft. However, in some cases, the user wants to use the old/legacy driver version and doesn’t want them to be updated automatically via Windows Update.

On Windows 10 and 11, you can disable the automatic device driver updates in several ways.

Contents:
  • How to Prevent Windows 10/11 from Automatically Updating Specific Driver?
  • How to Disable Automatic Hardware Driver Updates on Windows 11 or 10?
  • How to Stop Windows from Updating Hardware Drivers Using Group Policies?
  • Disable Automatic Driver Updates in Windows via PowerShell

How to Prevent Windows 10/11 from Automatically Updating Specific Driver?

You can prevent automatic driver updates for a specific device in Windows 10 and 11. For example, you are using some kind of old (but stable) video card driver that stops working correctly after each automatic driver update. You want all computer drivers to be updated automatically, except for the driver for a specific device (your video card).

Microsoft suggests using a separate tool – wushowhide.diagcab (“Show or Hide Updates”), which allows you to hide specific updates or drivers in Windows 11 and Windows 10.

  1. You can download the wushowhide.diagcab utility from the Microsoft Download Center  (http://download.microsoft.com/download/f/2/2/f22d5fdb-59cd-4275-8c95-1be17bf70b21/wushowhide.diagcab);
  2. Run the wushowhide.diagcab tool and select the option “Hide Updates“;
  3. In the list of the available Windows updates and drivers, check the drivers for which you want to disable the auto-update and click the Next button;wushowhide.diagcab utility to hide drivers update
  4. After that, the selected drivers will not be automatically updated by Windows.

You can disable the update of a specific driver via Group Policy. First of all, you need to get the device ID for which you want to disable the automatic driver updates.

  1. Open the device manager snap-in (devmgmt.msc). Find the device you need in the hardware list and open its properties;
  2. Go to the Detail tab and select “Hardware IDs” from the drop-down list;
  3. Copy the values of the hardware identifiers associated with the device (in the format PCI\VEN_15AD&DEV_ …) into the notepad.exe;video adapter device id: pci\ven
  4. In the Group Policy Editor console (gpedit.msc for standalone computer) go to the section Computer Configuration -> Administrative Templates -> System -> Device Installation -> Device Installation Restrictions. Enable the policy “Prevent installation of devices that match any of these device IDs”;
  5. Click the “Show” button in the policy settings and copy the graphic card IDs you received earlier into the table of values; GPO: Prevent installation of devices that match any of these device IDs
  6. Save the changes and update the Group Policy settings on the client with the command: gpupdate /force ;
  7. Now, if the computer receives and downloads driver updates for these devices through Windows Update, an error message will appear during their automatic installation (The installation of this device is forbidden by system policy. Contact your system administrator).The installation of this device is forbidden by system policy. Contact your system administrator
    Now you cannot manually update the driver for this device. To update it, you will have to disable this Group Policy option or remove the hardware ID from the list.

Also, you can enable this policy through the registry. To do this, run the registry editor (regedit.exe) and go to the registry key HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs. In this section, create string (REG_SZ) parameters with the names in order, starting with 1, and the hardware ID value in each parameter.

Registry deny DeviceInstall -> Restrictions -> DenyDeviceIDs

You can disable driver updates for specific device types (printers, sound cards, USB controllers, etc.) using the GPO option “Prevent installation of devices using drivers that match these device setup classes”. To do this, you need to specify the device class GUID. For example, {4d36e972-e325-11ce-bfc1-08002be10318} is a class of network adapters, {4d36e979-e325-11ce-bfc1-08002be10318} and {4658ee7e-f050-11d1-b6bd-00c04fa372a7} – printers, etc. You can find a complete list of hardware class GUIDs here:

https://docs.microsoft.com/en-us/windows-hardware/drivers/install/system-defined-device-setup-classes-available-to-vendors

How to Disable Automatic Hardware Driver Updates on Windows 11 or 10?

The easiest way to prevent Windows from automatic driver’s update is to change the system settings on the Hardware tab. To do this:

  1. Press Win + X and run the sysdm.cpl command; sysdm.cpl - open hardware driver settings
  2. The Hardware tab of the Advanced System Settings dialog will open;
  3. Click the Device Installation Settings button;Windows 10 - Hardware tab - Device Installation Settings
  4. In the Device Installation Settings window, change the value to “No (your device might not work as expected)” in the dialog “Do you want to automatically download manufacturers’ apps and custom icons available for your device?”; Do you want to automatically download manufacturers’ apps and custom icons available for your device
  5. Save changes and restart your computer.

This setting works on both Windows 10 and Windows 11.

How to Stop Windows from Updating Hardware Drivers Using Group Policies?

You can disable device driver updates in Windows 10 or 11 using Group Policy settings. You can use the domain GPO editor (gpmc.msc) or the Local Group Policy Editor gpedit.msc (described below).

  1. Press Win + R and type gpedit.msc -> OK (in Windows Home editions you can run the Local Group Policy Editor like this);
  2. In the Local Group Policy Editor, go to Computer Configuration -> Administrative Templates -> System ->Device Installation ->Device Installation Restrictions;
  3. Find the policy Prevent installation of devices not described by other policy settings; Prevent installation of devices not described by other policy
  4. Enable the policy (“Enabled”) and save the changes;
  5. Then enable the policy “Specify search order for device driver source locations”. This policy is located under the GPO section Computer Configuration -> Administrative Templates -> System -> Device Installation. Change the policy setting to “Do not search Windows Update”. This policy allows you to exclude the search for driver updates on Windows Update sites (when installing a driver for any Windows device, it tries to find a more suitable driver through the Windows Update service); Do not search Windows Update for driver updates
  6. Go to the section Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update, find and enable the policy named “Do not include drivers with Windows Update”Do not include drivers with Windows Update - group policy
    On Windows 11 and Windows Server 2022, this GPO option is located under Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update -> Manage Updates offered from Windows Update.

With domain GPOs (configured using the gpmc.msc console), you can apply these settings to multiple computers in an AD domain. In a workgroup, you can copy the local GPO settings to other computers using the LGPO.exe.

Disable Automatic Driver Updates in Windows via PowerShell

You can use a simple PowerShell script to disable automatic driver updates in Windows. This PowerShell script changes the same registry settings as the above GPO options. This method is convenient to use on computers with the Home edition of Windows (without a local GPO editor) and in tasks of automating the disabling of auto-update of drivers.

In order to disable automatic driver update in Windows, you need to change the values of the following registry parameters:

  • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching – SearchOrderConfig = 3 (3 — do not install drivers via Windows Update)
  • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata – PreventDeviceMetadataFromNetwork = 1
  • HKLM\SOFTWARE\Microsoft\Windows\WindowsUpdate – ExcludeWUDriversInQualityUpdate = 1

Open the elevated PowerShell console and run the following code:

Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching\ -Name SearchOrderConfig -Value 3
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata\' -Name PreventDeviceMetadataFromNetwork -Value 1
# Check that the registry key exists and create it if necessary
$regKey3 = 'HKLM:\SOFTWARE\Microsoft\Windows\WindowsUpdate'
$test = test-path -path $regKey3
if(-not($test)){
New-Item -Path $regKey3
}
Set-ItemProperty -Path $regKey3 -Name ExcludeWUDriversInQualityUpdate -Value 1

disable automatic driver updates in Windows 10 or 11 using powershell script

You can also change these registry settings manually using regedit.exe or deploy the registry keys to domain computers using GPO.

After restarting, the automatic driver updates in Windows will be blocked.

In the latest build of Windows 10 21H1 and in Windows 11, the ExcludeWUDriversInQualityUpdate parameter is located in several registry keys:

  • HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Update
  • HKLM\SOFTWARE\Microsoft\PolicyManager\default\Update
  • HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings
  • HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate

You need to set the parameter ExcludeWUDriversInQualityUpdate = 1 in all specified registry keys. Add the following PowerShell code to the above script:

$regkeys =
'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate',
'HKLM:\SOFTWARE\Microsoft\PolicyManager\default\Update',
'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings',
'HKLM:\SOFTWARE\Microsoft\PolicyManager\current\device\Update'
foreach ($regkey in $regkeys){
$test = test-path -path $regkey
if(-not($test)){
New-Item -Path $regKey
}
Set-ItemProperty -Path $regkey -Name ExcludeWUDriversInQualityUpdate -Value 1
}
foreach ($regkey in $regkeys){write-host $regkey}

Some administrators prefer to disable driver updates after deploying a Windows 10 image and installing all the necessary drivers. To do this, you can disable the installation of drivers using the GPO parameter “Prevent installation of devices not described by other policy settings” (discussed above) or with the command:

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v DenyUnspecified /t REG_DWORD /d 1 /f

3 comments
4
Facebook Twitter Google + Pinterest
previous post
Configuring iSCSI Datastore (LUN) on VMware ESXi
next post
How to Enable Remote Desktop Protocol (RDP) 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

3 comments

AA April 22, 2019 - 8:09 am

All of this methods are just “TEMPORARY”. I found automatic driver update couldn’t be turned off and MS officially told THEY WILL NEVER CHANGE THIS BECAUSE OF SECURITY which is just lie.

Reply
WIn11Newbie December 30, 2021 - 10:03 am

actually this worked for me:

In the latest build of Windows 10 21H1 and in Windows 11, the ExcludeWUDriversInQualityUpdate parameter is located in several registry keys:

HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Update
HKLM\SOFTWARE\Microsoft\PolicyManager\default\Update
HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings
HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate

You need to set the parameter ExcludeWUDriversInQualityUpdate = 1 in all specified registry keys. Add the following PowerShell code to the above script:

if you dont have the ExcludeWUDriversInQualityUpdate file in those locations you have to create one Dword 32-bit key in each location and set the value to one

Reply
serg August 31, 2023 - 4:00 pm

Block specific device driver from install:
Get the device Hardware ID and class:
pnputil /enum-devices /ids
Go to Computer Configuration/Administrative Templates/System/Device Installation and enable “Device Installation Restrictions/Prevent installation of devices that match any of these device IDs”

If a device is blocked a Event with ID 402 is logged to the Windows Kernel-PNP Log.
Get-WinEvent -FilterHashtable @{“LogName”=”Microsoft-Windows-Kernel-PnP/Configuration”;”ID”=”402″ }

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
  • Updating List of Trusted Root Certificates in Windows
  • Configure Google Chrome Settings with Group Policy
  • How to Find the Source of Account Lockouts in Active Directory
  • How to Hide or Show User Accounts from Login Screen on Windows 10/11?
  • How to Disable or Enable USB Drives in Windows using Group Policy
  • Changing Default File Associations in Windows 10 and 11
  • Configuring Proxy Settings on Windows Using Group Policy Preferences
Footer Logo

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


Back To Top