stop windows 10 from downloading and installing device drivers using windows update

Discussion in 'Windows 10' started by anniyan, Sep 11, 2019.

  1. anniyan

    anniyan MDL Novice

    Apr 6, 2015
    20
    4
    0
    i am running windows 10 home 1903. i have a discrete graphics card and an integrated graphics card in my laptop. both are malfunctioning due to incompatibility with windows 10. so i have disabled both of them in the device-manager for the time-being till i take my laptop to a computer repair shop (i am out of station now temporarily.) enabling them causes the machine to get stuck during booting and produces a BSOD everytime. and i have no hopes that these 2 can be repaired back to normal state; or atleast not without spending a huge amount. now my problem is i want to stop windows update from downloading and installing device drivers for both my graphics cards; but windows keeps downloading and installing them and enabling my graphics cards again and again. i have tried the option as shown in the screenshot too, but it is not helping. i dont want to get stuck at BSODs during boot; i dont want to daily waste ~300 MB of limited-metered internet-data; i dont want to leave my OS unpatched by other updates. someone please give me a solution. is there any option in windows 10 to download the updates i select manually (like it was in windows 7)? why has M$ made things difficult for us?
     

    Attached Files:

  2. pf100

    pf100 MDL Expert

    Oct 22, 2010
    1,661
    2,396
    60
    One solution is to use the Sledgehammer script in my signature. No device driver can install unless you specifically allow it. If you decide you don’t like it, just run the uninstall script to reverse all changes.
     
  3. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,734
    10,304
    210
    Here's the script I use to disable driver auto-downloads, but graphics cards are an exception. I'd recommend disabling internet while installing working graphics card drivers, using this script to disable the downloads, and rebooting before re-enabling internet.
    Code:
    @echo off
    
    title Disable/Enable Windows 10 Automatic Device Driver Updates
    color 1f
    :Begin UAC check and Auto-Elevate Permissions
    :-------------------------------------
    REM  --> Check for permissions
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    
    REM --> If error flag set, we do not have admin.
    if '%errorlevel%' NEQ '0' (
    echo:
    echo   Requesting Administrative Privileges...
    echo   Press YES in UAC Prompt to Continue
    echo:
    
        goto UACPrompt
    ) else ( goto gotAdmin )
    
    :UACPrompt
        echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
    
        "%temp%\getadmin.vbs"
        exit /B
    
    :gotAdmin
        if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
        pushd "%CD%"
        CD /D "%~dp0"
    :--------------------------------------
    
    :Check Windows Version
    wmic os get version | find /i "10.">nul 2>nul
    if %errorlevel% neq 0 GOTO :Not10
    
    :Check the key:
    (reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v "SearchOrderConfig"|find /i "0x0")>NUL 2>NUL
    if %errorlevel% neq 0 GOTO :KEYOFF
    
    :KEYON
    echo ============================================================
    echo Device Driver Automatic Updates are currently disabled.
    echo Would you like to re-enable them? (Y/N)
    echo ============================================================
    echo.
    choice /c yn /n
    If %ERRORLEVEL% NEQ 1 GOTO :QUIT
    
    echo Attempting to shut down the Windows Update service if it's running
    net stop wuauserv>NUL 2>NUL
    echo.
    
    Echo Changing Registry key
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v "SearchOrderConfig" /D 1 /T REG_DWORD /F>NUL 2>NUL
    IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
    Echo.
    
    Echo Device Driver Automatic Updates have been enabled
    Echo.
    goto :QUIT
    
    
    :KEYOFF
    echo ============================================================
    echo Device Driver Automatic Updates are currently enabled.
    echo Would you like to disable them? (Y/N)
    echo ============================================================
    echo.
    choice /c yn /n
    If %ERRORLEVEL% NEQ 1 GOTO :QUIT
    
    echo Attempting to shut down the Windows Update service if it's running
    net stop wuauserv>NUL 2>NUL
    echo.
    
    Echo Changing Registry key
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v "SearchOrderConfig" /D 0 /T REG_DWORD /F>NUL 2>NUL
    IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
    Echo.
    
    Echo Driver Automatic Updates have been disabled
    Echo.
    goto :QUIT
    
    
    :QUIT
    echo ============================================================
    echo Press any key to exit...
    echo ============================================================
    pause>NUL
    goto :EOF
    
    :ERROR
    echo ============================================================
    echo The script ran into an unexpected error setting reg key.
    echo Press any key to exit...
    echo ============================================================
    pause>NUL
    goto :EOF
    
    :Not10
    echo ============================================================
    echo This script is only designed for Windows 10...
    echo Press any key to exit...
    echo ============================================================
    pause>NUL
    goto :EOF
     
  4. endbase

    endbase MDL Guru

    Aug 12, 2012
    4,261
    1,385
    150
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Piers Patxi

    Piers Patxi MDL Novice

    Sep 5, 2019
    5
    1
    0
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\Update]
    "ExcludeWUDriversInQualityUpdate"=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Update]
    "ExcludeWUDriversInQualityUpdate"=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Update\ExcludeWUDriversInQualityUpdate]
    "value"=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings]
    "ExcludeWUDriversInQualityUpdate"=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
    "ExcludeWUDriversInQualityUpdate"=dword:00000001
     
  6. anniyan

    anniyan MDL Novice

    Apr 6, 2015
    20
    4
    0
    i tried the solutions by murphy78, piers patxi and endbase, but windows does not seem to honor these settings; i am too scared to modify system files using the sledgehammer. i even ran sfc /scannow twice - the first time, it displayed that it repaired corrupt system files; the second time it displayed that no system files are corrupted. after this i ran the DISM in commandline and rebooted. then i changed the option to INSTALL DEVICE DRIVERS to YES and then rebooted, then i set it to NO and then i rebooted. still no luck. any method other than reinstalling windows, and then trying these?
     
  7. freddie-o

    freddie-o MDL Senior Member

    Jul 29, 2009
    449
    441
    10
    #7 freddie-o, Sep 19, 2019 at 14:43
    Last edited: Sep 19, 2019 at 17:21
    EDIT: Sorry I did not see you were on Home. This won't work on Home

    Try this

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
    "ExcludeWUDriversInQualityUpdate"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DriverSearching]
    "DriverUpdateWizardWuSearchEnabled"=dword:00000000
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings]
    "ExcludeWUDriversInQualityUpdate"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching]
    "SearchOrderConfig"=dword:00000000
    
    
     
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    23,103
    32,228
    390
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...