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
    25
    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,777
    2,654
    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,770
    10,377
    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,355
    1,449
    150
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Piers Patxi

    Piers Patxi MDL Novice

    Sep 5, 2019
    17
    22
    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
    25
    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 Addicted

    Jul 29, 2009
    556
    578
    30
    #7 freddie-o, Sep 19, 2019
    Last edited: Sep 19, 2019
    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
    27,479
    40,657
    390
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. deadock

    deadock MDL Junior Member

    Jan 11, 2016
    61
    27
    0
    I think if the driver package is still in "C:\Windows\SoftwareDistribution\Download", it tries to reinstall the driver regardless of the GPO settings (registry keys/settngs that were posted). I remember running into such issue in early builds, not sure if it's still the case.
     
  10. erpsterm35

    erpsterm35 MDL Addicted

    May 27, 2013
    769
    343
    30
    which builds were you using, deadock?
     
  11. deadock

    deadock MDL Junior Member

    Jan 11, 2016
    61
    27
    0
    Early builds, I don't remember which exactly. Rough guess is the first or the second version of Windows 10. I Install and set everything, post install script, GPO and registry, offline since.
     
  12. jayblok

    jayblok MDL Guru

    Dec 26, 2010
    3,171
    2,528
    120
  13. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,770
    10,377
    210
    In some builds it will try to auto-update at least once, but it's not clear if it's because it fails to read the appropriate reg key or it checks for updates and then auto-schedules them to download and install.
    I have never had a problem when I have ran the script, manually installed graphics drivers, and restarted before turning on my internet after an install.
     
  14. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,770
    10,377
    210
    Are these connected via USB? Can you explain why this is abnormal? Did they specifically download drivers from the internet or did they just install a generic USB audio driver that was already in the os?
     
  15. jayblok

    jayblok MDL Guru

    Dec 26, 2010
    3,171
    2,528
    120
    One is via USB 2.0 and other is Firewire (IEEE-1394),windows 10 installs generic drivers with and without internet .
    I'm just going to use windows 7 on a separate workstation to listen to my audio files ,no big deal .The soundcards i have are really ancient .
    Thank You for responding .
     
  16. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,770
    10,377
    210
    Have you tried looking for firmware updates or win10 drivers from the manufacturer websites? I've never ran into this problem so forgive me if this is a dumb question.