Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows 11

ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11

เมื่อต่ออุปกรณ์ใหม่ Windows จะพยายามดาวน์โหลดและติดตั้ง Driver อัตโนมัติ ต่อไป OS จะอัปเดต Driver ผ่าน Windows Update ในส่วนใหญ่วิธีนี้เหมาะสมที่สุด เนื่องจากรับประกัน Driver เวอร์ชันล่าสุดที่ผ่านการตรวจสอบของ Microsoft แต่บางกรณี User ต้องการใช้ Driver เก่า/ Legacy และไม่ต้องการให้อัปเดตอัตโนมัติผ่าน Windows Update

ป้องกันไม่ให้ Windows 10/11 อัปเดต Driver เฉพาะตัวอัตโนมัติ

สามารถป้องกัน Auto-update Driver สำหรับ Device เฉพาะได้ เช่น ใช้ Video Card Driver เก่าที่เสถียร แต่หลัง Auto-update ทุกครั้งก็ทำงานผิดปกติ ต้องการให้ Driver อื่นๆ อัปเดตอัตโนมัติ ยกเว้น Driver ของ Device นั้น (Video Card)

Microsoft แนะนำ Tool แยก – wushowhide.diagcab (“Show or Hide Updates”) ซ่อน Updates/Driver เฉพาะใน Windows 10/11

  1. ดาวน์โหลด wushowhide.diagcab จาก Microsoft Download Center (https://download.microsoft.com/download/f/2/2/f22d5fdb-59cd-4275-8c95-1be17bf70b21/wushowhide.diagcab);
  2. รัน Tool เลือก “Hide Updates“;
  3. ในรายการ Updates/Driver ที่มี ให้ Check Driver ที่ต้องการปิด Auto-update คลิก Next; ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11
  4. หลังจากนั้น Driver ที่เลือกจะไม่ถูกอัปเดตอัตโนมัติโดย Windows

ยังสามารถปิด Update Driver เฉพาะตัวผ่าน Group Policy ต้องหา Device ID ของ Device ที่ต้องการปิด Auto-update

  1. เปิด Device Manager (devmgmt.msc) หา Device เปิด Properties;
  2. แท็บ Detail เลือก “Hardware IDs” จาก Dropdown;
  3. Copy Hardware IDs (รูปแบบ PCI\VEN_15AD&DEV_ …) ไป Notepad; ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11
  4. ใน GPO Editor (gpedit.msc สำหรับ Standalone) ไป: Computer Configuration -> Administrative Templates -> System -> Device Installation -> Device Installation Restrictions Enable Policy “Prevent installation of devices that match any of these device IDs”;
  5. คลิก “Show” ใน Policy Settings วาง Hardware IDs ที่ Copy ไว้ในตาราง Values; ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11
  6. Save และ Update GPO บน Client: gpupdate /force;
  7. ตอนนี้ หาก Windows ดาวน์โหลด Driver Updates สำหรับ Device นี้ จะ Error ระหว่าง Auto-install (The installation of this device is forbidden by system policy. Contact your system administrator) ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11 ไม่สามารถ Update Driver Manual ได้ ต้อง Disable GPO นี้ หรือลบ Hardware ID ออกจาก List

ยังสามารถ Enable Policy นี้ผ่าน Registry: เปิด regedit.exe ไปที่ HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs สร้าง String (REG_SZ) Parameters ชื่อ 1, 2, 3... Value = Hardware ID แต่ละตัว

ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11

ปิด Driver Updates สำหรับ Device Types เฉพาะ (Printers, Sound Cards, USB Controllers) ด้วย GPO “Prevent installation of devices using drivers that match these device setup classes” ต้องระบุ Device Class GUID เช่น {4d36e972-e325-11ce-bfc1-08002be10318} = Network Adapters, {4d36e979-e325-11ce-bfc1-08002be10318} และ {4658ee7e-f050-11d1-b6bd-00c04fa372a7} = Printers รายการ GUID ครบ: https://docs.microsoft.com/en-us/windows-hardware/drivers/install/system-defined-device-setup-classes-available-to-vendors

ปิดการอัปเดต Hardware Drivers อัตโนมัติบน Windows 11 หรือ 10

วิธีง่ายที่สุด: เปลี่ยน System Settings บนแท็บ Hardware

  1. กด Win + X รัน sysdm.cpl; ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11
  2. แท็บ Hardware ของ Advanced System Settings จะเปิด;
  3. คลิก Device Installation Settings; ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11
  4. ในหน้าต่าง Device Installation Settings เปลี่ยนเป็น “No (your device might not work as expected)” ใน Dialog “Do you want to automatically download manufacturers’ apps and custom icons available for your device?”; ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11
  5. Save และ Restart

Setting นี้ทำงานทั้ง Windows 10 และ 11

หยุด Windows Update Hardware Drivers ด้วย Group Policies

ปิด Device Driver Updates ใน Windows 10/11 ด้วย GPO ใช้ Domain GPO (gpmc.msc) หรือ Local GPO (gpedit.msc)

  1. Win + R -> gpedit.msc -> OK (Home Editions รัน Local GPO Editor ได้ตามวิธีก่อนหน้า);
  2. ไป: Computer Configuration -> Administrative Templates -> System -> Device Installation -> Device Installation Restrictions;
  3. หา Policy Prevent installation of devices not described by other policy settings; ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11
  4. Enable Policy (“Enabled”) Save;
  5. Enable Policy “Specify search order for device driver source locations” อยู่ที่ Computer Configuration -> Administrative Templates -> System -> Device Installation เปลี่ยน Setting เป็น “Do not search Windows Update” Policy นี้ยกเว้นการค้นหา Driver Updates บน Windows Update Sites (ตอนติดตั้ง Driver ใดๆ จะพยายามหา Driver ที่เหมาะสมกว่าผ่าน Windows Update); ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11
  6. ไป: Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update หาและ Enable Policy “Do not include drivers with Windows Update” ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11 บน Windows 11 และ Windows Server 2022 GPO นี้อยู่ที่ Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update -> Manage Updates offered from Windows Update

Domain GPOs (gpmc.msc) Deploy Settings นี้ไปหลายเครื่องใน AD Domain ใน Workgroup คัดลอก Local GPO Settings ไปเครื่องอื่นด้วย LGPO.exe

ปิด Auto Driver Updates ใน Windows ผ่าน PowerShell

ใช้ PowerShell Script ง่ายๆ ปิด Auto Driver Updates โดยเปลี่ยน Registry Settings เดียวกับ GPO ข้างต้น ใช้ได้กับ Home Edition (ไม่มี Local GPO Editor) และ Automation Tasks

เปลี่ยนค่า Registry Parameters ดังนี้:

  • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching – SearchOrderConfig = 3 (3 — ไม่ติดตั้ง Drivers ผ่าน Windows Update)
  • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata – PreventDeviceMetadataFromNetwork = 1
  • HKLM\SOFTWARE\Microsoft\Windows\WindowsUpdate – ExcludeWUDriversInQualityUpdate = 1

เปิด PowerShell as Admin รัน:

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 registry key exists, create if not
$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

ปิดการอัปเดต Driver อัตโนมัติบน Windows 10/11

แก้ Registry Settings นี้ Manual ด้วย regedit.exe หรือ Deploy ผ่าน GPO ก็ได้

Restart แล้ว Auto Driver Updates จะถูกบล็อก

ใน Windows 10 21H1 และ Windows 11 Build ล่าสุด Parameter ExcludeWUDriversInQualityUpdate อยู่ในหลาย 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

ต้องตั้ง ExcludeWUDriversInQualityUpdate = 1 ในทุก Key เพิ่ม Code นี้ใน 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}

บาง Admin ชอบปิด Driver Updates หลัง Deploy Windows 10 Image และติดตั้ง Drivers ครบแล้ว ทำได้ด้วย GPO “Prevent installation of devices not described by other policy settings” หรือคำสั่ง:

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