Book Now, WhatsApp Inquire
Windows Driver Conflicts and Device Manager Errors on Laptops: A Mechanism-Level Deep Guide from PnP Enumeration to Code 10 and Code 43
Back to Blog

Windows Driver Conflicts and Device Manager Errors on Laptops: A Mechanism-Level Deep Guide from PnP Enumeration to Code 10 and Code 43

2026-11-13 156 readAdvanced Laptop Windows Driver Conflict and Device Manager Fault Guide

📌 Key Takeaways

  • •KMDF (Kernel-Mode Driver Framework): the driver runs in kernel mode, can access hardware directly, handle interrupts, perform DMA, and use non-paged pool. The price is that an error can blue-screen the machine. KMDF supports function drivers, filter drivers and bus drivers for PnP devices, and legacy control-device drivers for non-PnP stacks; the documentation of the time noted that KMDF did not support bus filter drivers [A-S12]. KMDF alone has WMI support [A-S12].
  • •UMDF (User-Mode Driver Framework): the driver runs in user mode and can only access user address space, so the risk to system stability is low [A-S12]. A UMDF driver cannot handle interrupts, cannot perform DMA, and cannot use kernel-mode resources such as non-paged pool [A-S12]. UMDF implements a subset of KMDF functionality, including PnP, power management and asynchronous I/O support [A-S12]. It is mainly aimed at protocol or serial-bus devices [A-S12]. UMDF 1.x had to be written in COM and C++; from Windows 8.1, UMDF 2.0 can be written in C, calling many methods with the same names as KMDF; all new UMDF drivers should be written with UMDF 2, and UMDF 1 receives no new features [A-S14]. A UMDF driver runs in user mode, hosted by the Windows Driver Foundation service (`wudfsvc`, UMDF reflector `WudfRd`) [B-S23].

# Windows Driver Conflicts and Device Manager Errors on Laptops: A Mechanism-Level Deep Guide from PnP Enumeration to Code 10 and Code 43

Category: Advanced laptop Windows driver and Device Manager fault guide

Date: 2026-11-13 | Author: Laptop King

Summary: A yellow exclamation mark in Device Manager can mean nine completely different kinds of failure in the nine-link chain: firmware never handed the device to the operating system, bus enumeration failed, the PnP manager could not build a device node, no INF matched, DriverStore staging failed, a registry service key was corrupted, a driver failed to load, the device stack could not be built, or power and I/O never started working. The same numbers — Code 10, Code 43, Code 28, Code 31, Code 39, Code 19, Code 52 — mean different things at different layers, and each layer needs a different fix. This guide starts from the official definitions of how drivers work and works down through the four driver models WDM, KMDF, UMDF and WDDM and their privilege boundaries and crash radii, the three separate ideas bundled under "driver signing" (WHQL/HLK, attestation, and the Windows 10 version 1607 watershed), the section-by-section structure of an INF file and the six-step installation flow, the four-way relationship between the registry Enum, Services and Class keys and the DriverStore, the driver ranking formula 0xSSGGTHHH that decides which driver wins, the two enumeration paths used at boot and on hot-plug, and the full timing of the TDR watchdog: two seconds, five failures, sixty seconds. Part 2 then decodes every error code one by one, classifies the nine causes of conflict, explains each device class, takes apart how Windows Update pushes drivers, builds a layered exclusion method from soft to hard, and closes with Hong Kong humidity and commuting conditions, common misdiagnoses and traps, and a repair, replace or upgrade decision framework. Every factual claim carries a source tag; material marked as inference, second-hand, or unverified is labelled as such here and never presented as verified fact.

Introduction: the yellow exclamation mark is not a diagnosis, it is the address of a cry for help

Consider a familiar scenario: the laptop worked fine yesterday, but today the Wi-Fi is gone, Device Manager shows a yellow exclamation mark, and it says Code 10. The user has usually tried everything they could think of: clicking "Update driver", downloading the newest driver from the manufacturer's website, running a one-click driver updater, reinstalling Windows — and the problem comes back, sometimes with more yellow triangles than before. Some people assume the machine is infected, some assume the motherboard is dead, some assume a Windows update broke the machine. Those guesses are not always wrong, but most of them point in the wrong direction, because a Device Manager error code is not a verdict on "which part is broken". It is a position report from Windows' Plug and Play manager about which link of the nine-link chain failed [B-S1][B-S2][B-S4]. The same Code 10 can be a driver fault, a firmware fault, a power fault or a hardware fault. Only a layered reading can tell them apart.

To understand the picture, start with a mental model: a Windows driver is not a single .sys file. It is a chain that runs from firmware, through bus enumeration, the PnP manager, INF matching, DriverStore staging, registry service keys, kernel- or user-mode driver loading, device stack construction, and finally power and I/O operation. A failure at any link shows up in Device Manager as a number, but the same number can be caused by different layers, and different numbers can share one root cause. Code 43, for example, is officially defined only as "one of the drivers controlling the device notified the operating system that the device failed in some manner" [A-S1]. It does not say which layer failed; it only says the driver reported a failure to the system. That is why "reinstall the driver forever" is the most common misdiagnosis loop: reinstalling only repairs the INF, DriverStore and service-key stretch of the chain. It cannot repair firmware, hardware, power, heat, or oxidised contacts [A-S1][A-S30].

The first principle of diagnosis, running through the whole guide, is this: read the code first, then read the timeline, then read the logs, and only then touch the driver. The timeline question — "broke right after an update" versus "slowly got worse for no reason" versus "broke after a knock, water, or damp" — points at completely different layers [A-S1][A-S30]. This guide assumes the reader can do basic operations such as opening an administrator Command Prompt, opening Windows Settings, and photographing a screen. If any step feels uncertain, start with a free diagnostic and decide what to do once the results are in. Prices are listed on the pricing page; apart from battery from HK$580, screen from HK$1,280, motherboard chip-level repair from HK$880, and keyboard from HK$480, all other repairs are quoted in writing after diagnosis. The shop is at Room 1209, Daly Plaza, Shek Mun, Shatin; telephone +852 2186 8010; WhatsApp +852 6558 6806; opening hours 12:00–19:00.

Reading map

Part 1 (this guide) is the foundations: Chapter 1 sets out the nine-link chain and the basic posture of layered diagnosis; Chapter 2 covers the driver architectures WDM, KMDF, UMDF and WDDM; Chapter 3 separates the three ideas inside driver signing and the 1607 watershed; Chapter 4 dissects the INF file section by section and the six-step installation flow; Chapter 5 explains the four-way relationship between the registry Enum, Services and Class keys and the DriverStore; Chapter 6 explains the driver ranking formula and why "newest" does not mean "most preferred"; Chapter 7 covers PnP enumeration at boot and on hot-plug; Chapter 8 covers the TDR watchdog. Part 2 is the applied half: Chapter 9 decodes the error codes one by one; Chapter 10 classifies the nine causes of conflict; Chapter 11 explains each device class; Chapter 12 takes apart the Windows Update push mechanism; Chapter 13 builds the layered exclusion method with stop points; Chapter 14 covers advanced diagnostic tools; Chapter 15 covers the firmware layer; Chapter 16 covers power and wake; Chapter 17 covers Hong Kong conditions; Chapter 18 lists common misdiagnoses and traps; Chapter 19 gives the repair, replace or upgrade decision framework; Chapter 20 answers frequently asked questions. Every factual claim carries a source tag. Where no public data exists, the text says so or marks the point as inference. Nothing is invented.

1. The big picture: a driver conflict is not "one file broke", it is a nine-link chain

1.1 The full chain, from firmware to operation

From power-on to a device working normally, a laptop runs through a chain of nine links, and a break at any one of them produces a yellow exclamation mark in Device Manager. Link one is firmware: the BIOS or UEFI hands the device to the operating system together with its ACPI tables, resource allocation tables and device descriptions; if firmware does not hand it over, the system never sees the hardware at all. Link two is bus enumeration: the PCI, USB and other bus drivers create a Physical Device Object (PDO) for each device and report it to the PnP manager. Link three is the PnP manager: it creates a device node (devnode) for each PDO and checks the registry to decide which drivers make up the device stack for that node [A-S8][B-S22]. Link four is INF matching: the system takes the hardware IDs and compatible IDs reported by the bus driver and compares them character by character with the Models section of driver package INFs [A-S6][B-S4]. Link five is DriverStore staging: the winning driver package is first staged into the DriverStore, and only then installed [A-S10][B-S36]. Link six is the registry service key: the INF's .Services section registers the driver service with the Service Control Manager, writing ImagePath, start type and other values. Link seven is driver loading: the PnP manager loads the .sys file and calls DriverEntry or EvtDriverDeviceAdd. Link eight is device stack construction: the function driver creates the FDO, filter drivers create Filter DOs, and the stack is assembled bottom-up [A-S8][B-S22]. Link nine is power and I/O operation: the driver handles power-state transitions and I/O requests, and only then does the device actually work.

The most important property of this chain is layered dependence, and the failure messages at each layer look very similar. Firmware failing to allocate resources and a driver failing to load can both show a device as "cannot start"; a corrupted registry and a missing driver file can both show a driver as "cannot load". The first step of diagnosis should be to work out which link broke, not to keep retrying at the broken link. Error codes are the most reliable clue to the layer, but they are only position reports, not verdicts: Code 10 says the start gate failed, Code 28 says the matching gate found no driver, Code 19 says the registry gate is damaged, Code 52 says the signature gate refused. The same gate can fail for different reasons, and different gates can fail from one root cause — oxidised contacts, for example, can produce Code 37, Code 43 and Code 45 depending on when the oxidation bites [A-S26].

LinkComponentTypical error codes on failureDepends on
1. FirmwareBIOS/UEFI, ACPI tables, resource allocationCode 12, Code 29, Code 35, device invisibleFirmware hands over device and resources [A-S1]
2. Bus enumerationPCI/USB bus drivers, PDOCode 45, whole class yellow at onceBus driver healthy [A-S8]
3. PnP managerdevnode, device treeCode 24, Code 42Registry holds devnode records [B-S22]
4. INF matchingHardware IDs, Models sectionCode 28, Code 1INF strings match character for character [A-S6]
5. DriverStore stagingFileRepository, oem*.infCode 39, Code 28Package staged intact [A-S10]
6. Registry service keysEnum, Services, ClassCode 19, Code 32, Code 40Service key contents correct [A-S1]
7. Driver loading.sys, DriverEntryCode 31, Code 37, Code 39File present, signature valid [A-S1]
8. Device stackFDO, Filter DOCode 19, Code 31Filter drivers not conflicting [A-S8]
9. Power / I/OD0/D3 transitions, TDRCode 10, Code 43, TDR 4101Power, cooling, firmware cooperating [A-S24]

1.2 The basic posture of layered diagnosis: code first, timeline second, logs third

Layered diagnosis has three principles. First, read the code: copy down the device name, the exact error code, the driver version and date, and the Windows version and build before reinstalling anything [A-S1][A-S30]. To see an error code, open Device Manager, double-click a device category, right-click the device, choose Properties, and read the Device status area [A-S1]. Second, read the timeline: "broke right after an update", "slowly got worse for no reason", and "broke after a knock, water, or damp" point at completely different layers. Breakage right after an update points at the driver or ranking layer first; slow unexplained decline points at hardware ageing, cooling or contacts; breakage after damp or impact points at the physical layer first [A-S1][A-S30]. Third, read the logs: Event Viewer and setupapi.dev.log will say which gate failed, which driver won, and which signature check failed. Do not guess by feel. Each layer has a clear pass or fail standard; pass and move down a layer, fail and stop to repair at that layer. The full flow is in Chapter 13 of Part 2.

PrincipleMeaningTypical mistake when it is ignored
Code firstCopy the device name, code, driver version and date firstReinstalling the driver before reading the code
Timeline secondUpdate / slow decline / damp-impact are three different linesTreating oxidised contacts as a driver problem and reinstalling forever
Logs thirdEvent Viewer plus setupapi.dev.log, matched by timeConcluding from a single old event [A-S24]
Change one thing at a timeVerify after each change before the nextUpdating five drivers at once and not knowing which one broke it
Record before changingOld version, hardware ID, error code copied down firstUnable to roll back because the old version was never recorded [A-S30]

1.3 One-sentence summary of this chapter

A driver conflict is not one broken file; it is one broken link in a nine-link chain, and an error code only says which gate failed — the code, the timeline and the logs have to be read together before the diagnosis is sound.
EOF

2. Driver architecture at the mechanism level: WDM, KMDF, UMDF, WDDM

2.1 Three generations of models: WDM is the bottom layer, WDF sits on top of WDM

WDM (Windows Driver Model) is the bottom layer and the oldest model. Microsoft Learn states it plainly: the WDM model is closely bound to the operating system, drivers call system service routines directly and manipulate operating system structures directly; and because WDM drivers are trusted kernel-mode components, the system does only limited checking of driver input [A-S2]. The practical meaning is direct: a WDM driver that gets one pointer wrong or mishandles one IRP can bring the whole system down in a blue screen, because there is no buffer layer between it and the kernel. A WDM driver's I/O dispatch routines map directly onto the major IRP codes; the driver receives IRPs itself, parses them and responds [A-S2]. WDM objects are system-wide objects referenced by pointer, so a driver that corrupts a WDM object can corrupt the whole system [A-S2].

WDF (Windows Driver Frameworks) does not replace WDM; it is a framework layer wrapped around WDM. Learn explains that the WDF model focuses on the driver's needs, with the framework library handling most interaction with the system; the framework intercepts I/O requests, takes default action where appropriate, and then calls the driver's callback functions as needed; the WDF model is object-oriented and event-driven [A-S2]. KMDF "does not replace WDM, but provides a skeletal WDM implementation" — a re-entrant library that can be shared by multiple drivers [A-S12]. The key point: do not write "KMDF replaced WDM". The correct statement is that KMDF sits on top of WDM and handles the repetitive work for the driver — PnP, power management, synchronisation, I/O queues, registry access [A-S12]. WDF objects are opaque to the driver, referenced by handle, offer a context area the driver can configure, and the framework maintains reference counts to manage object lifetimes [A-S2]. Corrupting a WDF object is much harder, because the framework validates the data the driver supplies [A-S2].

A typical WDF driver consists of DriverEntry, EvtDriverDeviceAdd (functionally close to WDM's AddDevice), one or more I/O queues, I/O event callbacks, PnP and power callbacks, and — KMDF only — WMI callbacks [A-S2]. The framework registers its own dispatch routines, receives IRPs from the I/O manager, parses them, and then calls the driver's event callbacks [A-S2]. So when a WDF driver's EvtDriverDeviceAdd or DriverEntry returns failure, the PnP manager sees a device that cannot start — which is exactly the family of codes Code 10 and Code 37, "start or initialise failed" (see Part 2, Chapter 9).

2.2 KMDF versus UMDF: the fundamental split is privilege level and crash radius

  • KMDF (Kernel-Mode Driver Framework): the driver runs in kernel mode, can access hardware directly, handle interrupts, perform DMA, and use non-paged pool. The price is that an error can blue-screen the machine. KMDF supports function drivers, filter drivers and bus drivers for PnP devices, and legacy control-device drivers for non-PnP stacks; the documentation of the time noted that KMDF did not support bus filter drivers [A-S12]. KMDF alone has WMI support [A-S12].
  • UMDF (User-Mode Driver Framework): the driver runs in user mode and can only access user address space, so the risk to system stability is low [A-S12]. A UMDF driver cannot handle interrupts, cannot perform DMA, and cannot use kernel-mode resources such as non-paged pool [A-S12]. UMDF implements a subset of KMDF functionality, including PnP, power management and asynchronous I/O support [A-S12]. It is mainly aimed at protocol or serial-bus devices [A-S12]. UMDF 1.x had to be written in COM and C++; from Windows 8.1, UMDF 2.0 can be written in C, calling many methods with the same names as KMDF; all new UMDF drivers should be written with UMDF 2, and UMDF 1 receives no new features [A-S14]. A UMDF driver runs in user mode, hosted by the Windows Driver Foundation service (wudfsvc, UMDF reflector WudfRd) [B-S23].
The practical meaning: when a USB peripheral, a sensor, or some print or scan device fails, the crash radius is small — the driver crash usually only disables the device or restarts the driver host process, rather than blue-screening the whole machine. Display, storage and network drivers, by contrast, are mostly KMDF or WDM, so a failure there can affect the entire system. That explains why a broken Wi-Fi driver usually only kills the network, while a broken display driver can black-screen or blue-screen the machine. The same split explains Kernel-PnP Event 219 directly: when a UMDF device is plugged in, the framework service may not have started yet, the first load attempt fails, and Windows retries; unless the event repeats continuously, it can be ignored [B-S23].
ModelRuns inCan doCannot doFailure consequenceTypical devices
WDMKernel modeCall system services directly, manipulate OS structures— (no framework buffer)Whole-system blue screen possible [A-S2]Legacy kernel drivers
KMDFKernel modeHardware access, interrupts, DMA, non-paged pool—Whole-system blue screen possible [A-S12]Display, storage, network
UMDFUser modePnP, power management, async I/O subsetInterrupts, DMA, non-paged pool [A-S12]Device disabled, mostlyUSB peripherals, sensors
WDDMTwo layers (see 2.3)User-mode UMD plus kernel-mode KMD—TDR reset or blue screenGraphics cards

2.3 WDDM: a two-layer architecture built for display

WDDM (Windows Display Driver Model) is a display-specific two-layer architecture, and it has to be explained on its own. WDDM has a user-mode part and a kernel-mode part [A-S13]. The system-supplied modules include the Direct3D runtime (a user-mode application API), gdi32.dll, and Dxgkrnl (the kernel-mode graphics subsystem core, responsible for communication between the OS, the UMD, and the kernel-mode display miniport driver, the KMD; it contains the display port driver, the video memory manager VidMm, and the scheduler VidSch; dxgmms2.sys implements the GPU scheduler and video memory manager of WDDM 2.0 and later) [A-S13]. The third-party modules are the UMD (a user-mode driver DLL loaded by the Direct3D runtime) and the KMD (which talks to Dxgkrnl and the graphics hardware; the vendor must supply both a UMD and a KMD) [A-S13].

That explains three common phenomena. First, a display driver "update" actually replaces the UMD, the KMD, the control panel and services all at once, and a version mismatch at any one layer can break things. Second, TDR (see Chapter 8) happens in the Dxgkrnl and VidSch layer, not in the application layer. Third, when "Microsoft Basic Display Adapter" appears, it means the KMD never loaded at all and the system has fallen back to the basic display driver — the display version of the Code 28 and Code 31 family. After a graphics card reports Code 43, Windows uses the Microsoft Basic Display Driver to provide a basic picture, but without normal performance or features [B-S38]; a reader who sees "the picture became huge and slow" is not looking at a burnt-out card, but at the fallback driver doing its job.

2.4 A driver is not one thing: the basis of risk grading

Do not talk about "the driver" as if it were one lump. A kernel driver failure can blue-screen the machine; a user-mode driver failure usually only disables a device. That is the basis of risk grading, and it is why the first question in a repair is always "which class of device is it": a graphics driver failure touches the whole machine, while a USB sensor driver failure mostly touches that one peripheral. The same logic applies to filter drivers: a filter driver hangs above or below the function driver, and one broken filter can fail the whole device stack even though the function driver itself is innocent — the common root of Code 19 and of "the whole device died after I installed some software" [B-S22]. And when a bus driver fails, every child device it enumerates fails with it, so the symptom is "the whole class turned yellow at once", not one device.

3. Driver signing: WHQL, signature enforcement, Secure Boot — three different things

3.1 (A) The digital signature itself

A signature attaches a cryptographic signature to a driver file (or to its associated catalog file, .cat) so the system can verify the publisher's identity and whether the contents have been altered since publication [A-S32]. A signature is not the same as "Microsoft tested it": an Authenticode signature proves only origin and integrity; a WHQL signature additionally means the driver passed Microsoft's hardware laboratory tests. The three ideas in this chapter are the ones writers confuse most often, and they have to be kept apart, or readers will conclude that "signed means Microsoft approved it" or that "Secure Boot on means the driver must be fine". Both sentences are wrong.

3.2 (B) WHQL and HLK signing, and attestation signing

HLK (Hardware Lab Kit) signing provides WHQL signing, used for production drivers distributed through Windows Update, and it is the recommended signing method for retail distribution [A-S32]. The flow is that the vendor runs the full HLK test suite, uploads the binaries and test records, and Microsoft signs the catalog file. Attestation signing is a different route: it obtains a Microsoft signature without the full HLK test suite, but only for test and development scenarios, and it cannot be used for retail distribution through Windows Update; since 1 March 2023, attestation-signed drivers cannot be published to Windows Update for retail distribution [A-S32]. In short, the term "WHQL driver" means "passed HLK plus Microsoft signing", not "written by Microsoft".

3.3 (C) Kernel-mode code signing policy (KMCS) and the version watershed

Since Windows Vista, the kernel-mode code signing policy has controlled whether a kernel-mode driver is loaded; the signing requirements depend on the OS version and on whether the driver is publicly released or for development and testing [A-S3]. The 64-bit Vista rules were: a kernel-mode boot-start driver must have an embedded SPC signature; a non-PnP, non-boot-start kernel driver needs an SPC-signed catalog file or an embedded SPC signature; a PnP, non-boot-start kernel driver needs an embedded SPC signature, a WHQL release-signed catalog file, or an SPC-signed catalog file — and a PnP device installation only treats the driver as signed when the driver's catalog file is also signed [A-S3]. 32-bit Windows Vista and later enforced this policy only for drivers streaming protected media and for kernel boot-start drivers [A-S3].

Windows 10 version 1607 is the critical watershed, and it has to be written precisely. From Windows 10 version 1607, Windows will not load any new kernel-mode driver that has not been signed by Microsoft through the Hardware Dev Center; a valid signature can be obtained through hardware certification (HLK) or attestation [A-S3][A-S4]. Before that, a vendor could sign with its own Authenticode certificate plus a Microsoft cross-certificate; after 1607, new drivers must go through the Microsoft signing route [A-S4]. The exceptions, where cross-signing is still allowed, are only three: (i) the computer was upgraded to Windows 10 version 1607 from an older Windows version; (ii) Secure Boot is turned off in the BIOS; (iii) the driver was signed with an end-entity certificate issued before 29 July 2015, chaining to a supported cross-signing CA [A-S4]. To prevent a machine from becoming unbootable, a boot driver is not blocked even if it is non-compliant, but it will be removed by the Program Compatibility Assistant [A-S4]. On signing algorithms: SHA1 or SHA2 were both allowed in the 1607–1709 era, and only SHA2 from 1803; the certificate chain must lead to a Microsoft root such as Microsoft Root Authority 2010 or Microsoft Root Certificate Authority [A-S4].

3.4 Secure Boot: an anchor for the boot chain, not antivirus

When Secure Boot is on, only kernel drivers with WHQL or WHCP signing can be used; disabling driver signature enforcement is impossible on a UEFI machine with Secure Boot on — the only route is the TESTSIGNING boot loader option together with a self-signed driver [A-S32]. In other words, Secure Boot is not "antivirus". It is the trust anchor of the boot chain: UEFI firmware only loads a boot loader and drivers with a trusted signature, and driver signature enforcement is the extension of that chain into the OS layer. The practical inference (writable): on a laptop with Secure Boot on, installing an old kernel driver that Microsoft never signed is refused outright (the usual code is Code 52 — the driver cannot verify its digital signature; setupapi.dev.log shows CM_PROB_UNSIGNED_DRIVER 0x34, which is Code 52 [A-S11]), while the same driver might install on an old machine with Secure Boot off. That is the mechanism behind "the same driver works on the old machine and not on the new one".

Secure Boot verifies the boot chain (UEFI firmware, boot loader, kernel); it does not verify driver signatures at driver load time. A Secure Boot failure and a driver signing failure are two different faults and must not be blamed on each other [B-S38]. Turning off Secure Boot will not repair Code 52; turning off driver signature enforcement requires Secure Boot to be off, but the reverse does not hold [B-S38]. If the Secure Boot setting in the BIOS has been changed (for example from Windows UEFI mode to CSM or Legacy), some drivers that need Secure Boot — such as drivers that require HVCI or Memory Integrity — may refuse to load, showing Code 10 or Code 52 [B-S38].

3.5 Development and test signing, and the safety warning

During development and testing, a driver must be test-signed, and test-signing must be enabled; test signing can be a WHQL test signature or one generated by an internal test certificate [A-S3]. Readers must be warned: online advice to run bcdedit /set testsigning on or to disable signature enforcement permanently tears down the whole kernel defence of the machine. It should never be listed as a routine repair step; it belongs only in a controlled test environment [A-S32]. Signature checking is a chain, and a break at any link produces Code 52: the driver file itself, the catalog (.cat) file, the certificate chain (which must lead to a Windows-trusted root), the system clock (expired-certificate judgements depend on the clock), and the firmware state [B-S38]. A newer cause: Microsoft keeps expanding its vulnerable-driver block list, and once the signing certificate of an old driver is revoked, Windows refuses to load it even though the hardware is perfectly fine, showing Code 52. In that situation the correct action is to find a new version from the vendor, not to turn off signature enforcement [B-S38].

4. The INF file and the installation flow: a recipe, not a program

4.1 An INF is not a program; it is an installation recipe

An INF file is made of sections, each named in square brackets — for example [Version], [DestinationDirs], [Manufacturer] and [Strings] are system-defined names, while other sections are defined by the INF author [A-S5]. The order in which sections appear does not matter, because sections run by installation phase, not by file order [A-S5]. Microsoft Learn's mouse INF example shows the hierarchy: [Version] (Signature = "$Windows NT$", Class = Mouse, ClassGUID, Provider, DriverVer date and version, CatalogFile = .cat, PnpLockdown = 1), then [DestinationDirs] (DefaultDestDir = 13, the driver directory), then [Manufacturer] (%StdMfg% = StdMfg, %MSMfg% = MSMfg), then a Models section per vendor (StdMfg, MSMfg), where each line maps a device description to a DDInstall section in the form %device description% = install section name, hardware ID, compatible ID [A-S5]. For example, %pnp0f0c.DeviceDesc% = Ser_Inst,PNP0F0C,SERENUM\PNP0F0C,SERIAL_MOUSE [A-S5]. Each DDInstall-type section (Ser_Inst, Inp_Inst) can then carry system-defined extensions such as .Services, or CopyFiles directives pointing at other author-defined sections (for example Ser_CopyFiles) [A-S5].

4.2 What each section actually does

  • [Version]: the identity card. Signature, Class and ClassGUID (which decide the Device Manager category and the installer), Provider, DriverVer (date plus version — the tie-breaker in driver ranking, see Chapter 6), CatalogFile (the name of the signing catalog file), PnpLockdown=1 (prevents tampering after installation) [A-S5].
  • [Manufacturer] plus the Models section: the matching table. Each line binds one hardware ID or compatible ID to one DDInstall section; the system installer takes the hardware IDs and compatible IDs reported by the bus driver and compares them character by character with the INF, and a match tells it that this INF describes the driver for that device [A-S6].
  • [DDInstall] (such as Ser_Inst): the actions. CopyFiles (copies .sys, .dll and .exe files), AddReg (writes registry values), and the .Services sub-section (registers the driver service with the Service Control Manager) [A-S5].
  • [DestinationDirs] and [SourceDisksFiles]: where files go and where they come from. DestinationDirs maps logical destination codes to Windows system directories (12 = %SystemRoot%\System32\drivers, 13 = DriverStore-related); SourceDisksFiles states which installation disk each file belongs to [A-S5].
  • [Strings]: the definitions of every %token%, in localisable form [A-S5].
  • [ControlFlags]: special handling, for example ExcludeFromSelect = * tells the Add Hardware wizard not to let the user manually select devices on these enumerable buses, and to load them only when the PnP manager detects them [A-S6].
Whether a driver package can match a device depends on two things, both required [B-S4]: first, the hardware ID or compatible ID reported by the bus driver must match a hw-id or compatible-id string in the driver package INF's INF Models section; second, the TargetOSVersion decoration of that Models section must apply to the current OS version. The INF also carries a DriverVer directive: DriverVer=mm/dd/yyyy,w.x.y.z, which states the date and version of the whole driver package; the date must be the newest date of any file in the package, and 0.0.0.0 is not a valid version [B-S17].

Remember: the hardware ID is the golden key of diagnosis — Device Manager, device, Properties, Details, Hardware Ids. Two devices with the same name but different hardware IDs need completely different drivers; two devices with different names but the same hardware ID can share a driver. Before rushing to "download the driver from the official website", copy the hardware ID first — without it, there is no way to know which driver is needed [B-S4].

4.3 The installation flow: six steps of PnP installation

Step one: the bus driver reports a new device and its hardware IDs and compatible IDs to the PnP manager. Step two: Windows searches several places for a matching driver package — the DriverStore, Windows Update, and user-specified folders (see Chapter 6 for the search scope). Step three: every matching package is scored and ranked (see Chapter 6). Step four: the winning package is staged into the DriverStore (if it is not already there). Step five: the installer follows the INF — copying files to their runtime locations (mainly %SystemRoot%\System32\drivers), writing the registry (the Enum entry, the Services service key, and the Class key), and registering the service. Step six: the PnP manager loads the driver, builds the device stack, calls DriverEntry or EvtDriverDeviceAdd, and the device starts. A failure at any step leaves a trace: setupapi.dev.log marks warnings with ! and failures with !!! [A-S11]; Event Viewer's Kernel-PnP and System logs carry matching events (see Part 2, Chapter 14).

5. The registry machine: the four-way relationship between Enum, Services, Class and the DriverStore

This is the section most easily written wrong, and also the most valuable one. Four locations have to be explained separately, together with how they point at each other:

  • HKLM\SYSTEM\CurrentControlSet\Enum\\\: the device enumeration record. Every device the PnP manager has detected since the system was installed is recorded here; the subkey format is \\, where the enumerator is the bus driver and the device ID is the unique identifier of the device type [A-S8]. The Enum entry's DeviceDesc, HardwareID, CompatibleIDs, ClassGUID, Driver value (pointing at the matching driver key under the Class key) and Service value are a diagnostic gold mine: the "Device status" code in Device Manager and the FailReasonString (see Code 10) both live on the hardware key — the device key under Enum [A-S1]. Enum entries are owned by the system and permission-protected. Deleting an Enum entry by hand is a high-risk operation and must be listed as "something not to teach readers to do" unless a full backup and a restore point exist.
  • HKLM\SYSTEM\CurrentControlSet\Services\: the driver service key. The INF's .Services section creates the service here. The key values include ImagePath (the .sys path, usually \SystemRoot\System32\drivers\xxx.sys), Start (start type: 0 boot, 1 system, 2 automatic, 3 manual, 4 disabled), Type (1 kernel driver, 2 file system driver, and so on), and ErrorControl. The official cause of Code 32 is exactly "this driver's start type is set to disabled in the registry" [A-S1]; the causes of Code 19 include "more than one service is defined for the device, the service key cannot be opened, or the driver name cannot be obtained from the service key" [A-S1]; Code 40 is "the registry service subkey information is invalid" [A-S1]. The three codes together make one point: a broken Services key means the driver cannot even answer "what am I called, where am I, when do I start", so the PnP manager has nothing to load.
  • HKLM\SYSTEM\CurrentControlSet\Control\Class\{ClassGUID}: the device class key. It holds the shared settings of each device class, including UpperFilters and LowerFilters (the lists of upper and lower filter drivers). A filter driver is a small kernel driver hung above or below the function driver (burning software, virtual CD drives, and some antivirus or encryption software install them) that intercepts I/O and passes it on. When a filter driver is missing, incompatible, or left behind after its software is uninstalled, Windows can report Code 19 (registry configuration incomplete or damaged) [A-S19]. The Microsoft Q&A discussion of Code 19 says explicitly to check the UpperFilters, LowerFilters and .bak values under HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318} (the CD/DVD class), and to export a backup before deleting anything [A-S19]. Remember: deleting UpperFilters or LowerFilters is a conditional last resort, not routine "cleaning". The software that installed the filter must be uninstalled first, a restore point must be created, the key must be exported, and only the offending filter name must be removed (not the whole value emptied); deleting the wrong one can disable other devices in the same class.
  • HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers (display only): home of TDR parameters such as TdrDelay, default 2 seconds; Microsoft treats these registry settings as testing and debugging tools, not routine troubleshooting steps. Back up the registry before changing them, restart for the change to take effect, and never stretch the timeout as a first "fix" [A-S24].
The danger of registry cleaning tools: the registry is the driver's civil registry — Enum, Services and Class all reference each other, and one wrong "clean" can cut the service keys of dozens of devices at once. Microsoft's official advice for Code 19 is "uninstall and reinstall the driver" or "restore to the last known good registry configuration or a system restore point", not "scan the registry with a third-party tool" [A-S1]. Any tool that promises to "clean the registry and fix all drivers in one click" runs directly against Microsoft's repair path.

5.1 The DriverStore: the library of driver packages

The DriverStore is Windows' library of driver packages, not the runtime directory. It lives at C:\Windows\System32\DriverStore\FileRepository; each subfolder corresponds to one staged driver package and holds that package's INF, catalog signing file, .sys files, DLLs and so on [A-S10]. When a driver is installed, Windows first stages the package into the DriverStore, and only then installs it for the matching device — copying the needed files to their runtime locations and registering services and device settings [A-S10]. A non-boot-critical driver added to an offline image is in "staged" state: it goes into the DriverStore, and when Windows starts, PnP installs the matching driver from the DriverStore once it detects the device; a boot-critical driver is "reflected" into the image and is used at boot [A-S10]. After a driver is added, it is renamed to Oem*.inf so that file names stay unique inside the OS [A-S10].

Staging and installing are two separate operations. Microsoft states it plainly: "The process of copying a driver package to the Driver Store is called staging. A driver package must be staged into the Driver Store before it can be used to install any device. Therefore, driver staging and device installation are separate operations." [B-S36] The practical consequences: first, a machine can have a dozen driver packages staged for the same device, but only one bound at a time; second, "uninstalling a device" is not the same as "deleting a driver package", and "deleting a driver package" is not the same as "uninstalling a device"; third, Windows 10 matches in two phases — it first installs the best-matching package from the DriverStore so the device works quickly, then looks on Windows Update and DevicePath for a better match and replaces the first one if it finds one [B-S5].

The correct tool for managing the DriverStore is pnputil, not File Explorer by hand. pnputil /enum-drivers lists installed drivers; pnputil /add-driver /install adds and installs one; pnputil /delete-driver /uninstall /force removes one [A-S10]. Second-hand guidance warns explicitly: even a system administrator should not delete folders under FileRepository by hand — the DriverStore is permission-protected and tied to package metadata and device records; a package must be removed with pnputil, Device Manager, Print Management, or the vendor's uninstaller [A-S10]. Deleting FileRepository by hand is a shortcut to Code 39 (driver may be corrupted or missing) [A-S1] and Code 28: the device is still in Enum, the service key still points at a package that no longer exists, and the PnP manager tries to load a driver that is not there on every boot. Installed third-party INFs are copied to C:\Windows\INF under published names such as oem#.inf (oem0.inf, oem1.inf, and so on) [B-S6]; the running kernel driver files (.sys) sit in C:\Windows\System32\drivers once loaded.

6. Driver ranking: why Windows picked this one and not that one

6.1 The ranking formula 0xSSGGTHHH

Windows searches for matching driver packages on this condition: the hardware ID or compatible ID reported by the bus driver must match a hw-id or compatible-id string in the INF's Models section, and the TargetOSVersion decoration of that Models section must apply to the current OS version [A-S6]. Each match is given an integer ranking value greater than or equal to zero; the rank is the sum of a signature score, a feature score and an identifier score, in the format 0xSSGGTHHH (SS = signature, GG = feature, THHH = identifier) [A-S7]. The lower the rank, the better the match [A-S7]. The selection rule: pick the match with the lowest rank; if several matches tie on rank, pick the one with the newest DriverVer date; if the dates tie, pick the highest version; if all three tie, Windows may pick any of them [A-S6]. Signing also affects ranking: if the AllSignersEqual group policy is disabled, a Microsoft-signed driver package ranks above one with only an Authenticode signature; if it is enabled, all digitally signed packages rank equally [A-S6].

FieldNameHow it is scoredKey point
SSSignature scoreScored on whether the driver package's digital signature is trustedA trusted signature (WHQL premium/standard, third-party Authenticode, enterprise CA, Class 3 CA, MakeCert) scores best; no valid signature but a .nt platform extension on the INF DDInstall scores next; no valid signature and no .nt scores third; unsigned or unknown signature status scores worst (0xFF000000) [B-S19]
GGFeature scoreScored on the features the driver package supports, set by the INF FeatureScore directive; if unspecified it defaults to 0xFF (that is, 0x00FF0000, meaning no feature preference); lower is better, best is 0x00000000 [B-S18]Microsoft defines feature score use for specific device classes; for classes with no rule, a driver package should not define a feature score [B-S18]. Biometrics is the exception: legacy drivers are advised to use 0xa0, not 0x00 (leaving room to override later) [B-S26]
THHHIdentifier scoreScored on how the device's reported device identification strings match the strings in the INF Models sectionAn exact hardware ID match scores best (lowest score); a compatible ID match scores lower. This is the heaviest part of the rank — a narrowly targeted old driver can beat a broadly generic new driver

6.2 Three counter-intuitive consequences

First, date and version are only tie-breakers, not the deciding factor. A 2021 OEM driver that matches the hardware ID exactly and is well signed can rank better than a 2025 generic driver that only matches a compatible ID. A user who sees "Windows says this old driver is best" is not looking at a bug; that is the ranking mechanism working as designed [B-S4]. Second, the signature score can override the match. If the AllSignersEqual group policy is disabled, a Microsoft-signed driver ranks above an Authenticode-signed driver even when the latter matches better in other respects. Since Windows 7, AllSignersEqual is enabled by default, so all digitally signed drivers rank equally [B-S4]. Third, the feature score is a tool vendors use to "reserve a place". The biometrics example proves it: a vendor can use the feature score to stop Windows Update from overwriting a legacy stack the user deliberately chose with a new-architecture driver [B-S26].

The practical inferences: first, "newest" does not mean "most preferred" — an old OEM driver that matches the hardware ID exactly can beat a new generic driver that only matches a compatible ID; second, the mechanism behind "Windows Update pushed the wrong driver" is often ranking logic — the new package has a newer DriverVer date, the same signature score and the same identifier score, so it wins, even when it has a known problem on that model; third, that is why "roll back" works — rolling back binds the device to the previous staged package, not to some abstract "older version"; if the previous version was already deleted by DDU, a cleanup utility or pnputil /delete-driver, the Roll Back button goes grey, because Windows has no old package left to bind to [A-S30].

6.3 Why so many drivers are dated 21 June 2006

Many Windows inbox drivers show the date 21 June 2006 (the Windows Vista RTM date). The reason is directly tied to ranking: if a Microsoft driver's date followed the build date, it would be newer than the vendor driver every time, and every new build would overwrite the user's vendor driver. By deliberately backdating the Microsoft driver to Vista RTM, a vendor driver (whose date is necessarily newer than Vista RTM) keeps priority; if the user is running an old Microsoft driver, the new build's Microsoft driver still wins on the third tie-break, because its version is higher [B-S17]. Intel Chipset Device Software uses a similar trick (backdated to 1968, the year Intel was founded) for the same purpose — lowering the rank so the vendor driver keeps priority [B-S17]. A driver date is descriptive information set by the provider; it can be any date, and it is neither the file compile date nor the install date. So "this driver's date is old, so it must be out of date" is a false inference [B-S17].

6.4 A ranking experiment the reader can run

Teach the reader to run pnputil /enum-drivers and see how many oem*.inf files are competing for the same hardware ID, then use this chapter's ranking rules to explain why Windows picked the one it did [A-S6][A-S7]. pnputil /enum-devices /instanceid /drivers shows the matching and installed drivers for one device; /stack shows the actual device stack [B-S6]. Many tutorials only teach pnputil /add-driver and never mention the limit that "if the ranking is not high enough, it will not be applied". A reader who follows such a tutorial and finds that "installing it changed nothing" has hit exactly this mechanism: pnputil /add-driver is not "force install" — if this driver is not the highest-ranked driver on the system, PnPUtil will not force it onto the device [B-S6].

7. The PnP manager enumeration flow: two paths, boot and hot-plug

7.1 Boot enumeration: how the device tree is born

At startup, the PnP manager asks the PCI bus driver to enumerate the devices attached to the PCI bus, and those devices become children of the PCI Bus node; the PnP manager then asks each bus to enumerate its devices [A-S8]. The bus driver (for example Pci.sys) creates a device object for each attached device, called a Physical Device Object (PDO); the PnP manager associates a device node (devnode) with each newly created PDO and checks the registry to decide which drivers the device stack for that node needs [A-S8]. A device stack must have one and only one function driver, and optionally one or more filter drivers; the function driver handles read, write and device control requests, while filter drivers play a supporting role [A-S8]. The device object created by the function driver is called the FDO (Functional Device Object), the one created by a filter driver is called a Filter DO, and the PDO is always at the bottom of the stack [A-S8]. When a driver is installed, the installer uses the INF file's information to decide which driver is the function driver and which are filter drivers [A-S8].

Said another way: at boot, the PnP manager asks each bus's driver to enumerate child devices (for example the PCI bus driver pci.sys) [B-S22]; the bus driver creates a PDO for each device and reports it to the PnP manager [B-S22]; the PnP manager creates a devnode for each new PDO and places it in the PnP device tree, whose root is the root device node [B-S22]; the PnP manager checks the registry to decide which drivers make up the device stack for that devnode [B-S22]. Each devnode has an ordered list of device objects, called the device stack, and each device object corresponds to one driver [B-S22]. The PnP manager loads them in order from low to high: first the lower filter, then the function driver, then the upper filter; each driver's AddDevice creates its own device object and attaches it to the stack [B-S22].

Remember: what the user sees as a "device" is really a devnode; a driver is not "installed onto the hardware", it is "hung onto the devnode's stack". That distinction explains why the same piece of hardware can have a "hidden" or "ghost" entry — the devnode's registry record survives, but the hardware is no longer present (see Part 2, Chapter 14).

7.2 Hot-plug enumeration: six steps, using a USB device as the example

Step one: the bus device's function driver notices a new device on the bus. Step two: it tells the PnP manager that its set of child devices has changed, using IoInvalidateDeviceRelations (Type = BusRelations). Step three: the PnP manager sends IRP_MN_QUERY_DEVICE_RELATIONS (BusRelations) to the bus device stack, asking for the current device list. Step four: the bus function driver handles that IRP — for example, the USB hub driver creates a PDO for a game controller and puts a reference to that PDO in the returned child device list. Step five: the PnP manager compares the returned list with the existing child devices in the PnP device tree, creates a devnode for each new device, and starts the removal procedure for devices that have gone. Step six: the PnP manager sends a series of IRPs to the device stack to collect information about the new device (at this point the stack holds only the PDO created by the parent bus driver and any optional bus filter drivers), then checks the registry, selects drivers, and builds the stack [A-S9]. ACPI takes part as a bus filter driver in building the bus relations list [A-S9].

7.3 What an enumeration failure means for diagnosis: invisible and visible-but-broken are two different roads

If a device does not appear in Device Manager at all — not even as an "unknown device" — the problem is at the enumeration layer or below: the BIOS or UEFI never handed the device to the OS (see Code 29 and Code 35 — firmware did not provide the required resources, or system firmware information is insufficient [A-S1]), the bus driver itself is faulty, the device has no power, or a connector is open (the Code 45 family). If the device appears but carries a yellow exclamation mark, enumeration succeeded and the problem is in the driver matching, loading or starting layer. This is the first branching point of layered diagnosis, and it has to be stressed: "cannot see the device" and "can see it but it has a code" are two completely different investigations.

Three mechanism-level lessons follow. First, filter conflict: third-party software (old-style antivirus, disk encryption, USB monitoring) hangs into the stack as an upper or lower filter, and one broken filter fails the whole stack even though the function driver is innocent. Second, bus driver failure: when the PCI or USB bus driver fails, every child device it enumerates fails with it — the symptom is "the whole class turned yellow at once", not one device. Third, FDO failure: the function driver's AddDevice returns an error, which is Code 31 (CM_PROB_FAILED_ADD) [B-S2].

8. TDR: the watchdog built for display drivers

8.1 What TDR is: a recovery mechanism built into WDDM

TDR (Timeout Detection and Recovery) is part of WDDM and has been built into Windows since Windows Vista [A-S24]. The mechanism, in Microsoft's own flow [B-S10]: first, the GPU scheduler (part of the DirectX graphics kernel subsystem, Dxgkrnl.sys) detects that the GPU is taking longer than allowed to execute a task; second, the scheduler tries to preempt that task, and the preemption operation has a "wait" timeout, which is the actual TDR timeout; third, the default timeout is 2 seconds. If the GPU cannot finish or preempt the current task within the TDR timeout, the OS judges the GPU to be frozen; fourth, the GPU scheduler calls the display miniport driver's DxgkDdiResetFromTimeout function, telling the driver the OS detected a timeout; the driver must reinitialise itself and reset the GPU, while stopping memory access and not touching the hardware; fifth, the desktop recovers: the video memory manager (also part of Dxgkrnl.sys) clears all video memory allocations, the miniport driver resets the GPU hardware state, and the graphics stack restores the desktop to a responsive state. The only visible trace is the screen flickering once (a compliant WDDM 1.2 or later miniport can eliminate that redraw); sixth, after a successful recovery, the OS shows "Display driver stopped responding and has recovered", records it in Event Viewer, and collects diagnostic information [B-S10].

The GPU scheduler inside Dxgkrnl watches how long each GPU job takes; by default, if the GPU cannot finish or be preempted within 2 seconds, Windows judges the GPU to be "stalled", asks the display driver to reset the GPU itself, clears the video memory allocations and restores the desktop, and the screen only flickers once; Event Viewer records Event ID 4101 (source Display), with the message "Display driver stopped responding and has recovered", and names the driver module (nvlddmkm for NVIDIA, amdkmdag or amdwddmg for AMD, igfx for Intel) [A-S24]. Note: amdkmdag.sys is the driver file name, while amdwddmg is the same driver's service name.

8.2 The TDR numbers: 2 seconds, 5 times, 60 seconds, 0x116 and 0x117

  • TdrDelay (default 2 seconds): the number of seconds the GPU may delay the scheduler's preemption request — the timeout threshold [B-S11].
  • TdrDdiDelay (default 5 seconds): the number of seconds the OS allows a thread to leave the driver; exceeding it produces a blue screen with the code VIDEO_TDR_FAILURE (0x116) [B-S11].
  • TdrLimitCount (default 5) plus TdrLimitTime (default 60 seconds): if 5 or more GPU hangs (0x117) and subsequent recoveries happen within 60 seconds, the sixth hang produces a bug check (blue screen) instead of another recovery attempt [B-S10][B-S11].
  • TdrLevel (default 3 = Recover): 0 = detection disabled, 1 = blue screen on timeout, 3 = recover [B-S11].
  • Blue screen code map: 0x116 VIDEO_TDR_FAILURE (the attempt to reset the display driver and recover from the timeout failed); 0x117 VIDEO_TDR_TIMEOUT_DETECTED (the live kernel dump identifier for a GPU hang); 0x141 (engine timeout): not counted as a GPU hang, but if the engine timeout recovery fails, the OS can promote it to a GPU hang; an engine reset blocks the offending process's GPU access, and the system records 0x142 [B-S10].
The default tolerance is 5 times within 60 seconds (TdrLimitCount and TdrLimitTime); beyond that the system bug-checks instead, with the stop codes VIDEO_TDR_TIMEOUT_DETECTED (0x117, the timeout itself) and VIDEO_TDR_FAILURE (0x116, the reset failed) [A-S24]. The TdrDelay registry value (HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers) controls the timeout, default 2 seconds [A-S24].

8.3 TDR is a symptom, not a diagnosis

Four points to remember about TDR. First, TDR is a symptom, not a diagnosis — it only proves "the GPU did not respond within the time limit". It does not prove the driver is wrong, the hardware is dead, or the machine overheated; a driver bug, a triggering application, unstable power, overheating, or a VRAM fault can all trigger the same event [A-S24]. A healthy graphics card can trigger TDR because of a driver bug, a power problem, overheating, or a badly behaved application that stops the GPU responding in time [B-S37]. Second, a 4101 event only counts if it lines up in time: only a 4101 in the same minute as the black screen is relevant; an isolated old 4101 is not evidence [A-S24]. Third, Kernel-Power Event 41 (the system restarted without a clean shutdown) is not TDR; when the two appear together, it usually means the machine eventually lost power or was force-restarted, which is a different clue [A-S24]. Fourth, never present changing TdrDelay as a first-choice repair — Microsoft positions it as a testing and debugging tool [A-S24]. Microsoft warns explicitly: the TDR registry keys are for testing and debugging only during driver development; ordinary users should not change them, and applications should not change them outside targeted testing and debugging. [B-S11] Doing so only postpones the watchdog's alarm, hides the real cause (driver, power, cooling, or hardware), and can leave the system frozen for longer before it recovers.

The driver module name identifies the responsible stack: nvlddmkm.sys (NVIDIA), amdkmdag.sys or amdkmdap.sys (AMD), igdkmd64.sys (Intel graphics) [B-S37]. Do not over-read a single event: one 4101 only proves one timeout and one recovery happened; frequency, time distribution and trigger context (gaming, video, idle, after wake) are what separate driver, power, cooling and hardware causes. A graphics card's Code 43 is related to TDR: repeated TDR failures can escalate into a persistent Code 43 disabled state, but the two have different log signatures (4101 is a momentary reset, Code 43 is a persistent disable) [A-S24].

8.4 Part 1 in brief: the bridge from foundations to error codes

By now the reader has everything needed to read an error code: which layer a driver runs in (kernel or user), how signing polices the gate, how an INF matches, how the four registry and DriverStore corners point at each other, how ranking picks a winner, how enumeration builds the device tree, and how TDR watches the GPU. From the next chapter, this guide uses those foundations to decode Device Manager error codes one by one — which gate each code maps to, which layer, which log evidence, and what to do next and what not to do. Part 2 continues with Chapter 9, the code-by-code decode; Chapter 10, the nine causes of conflict; Chapter 11, device classes one by one; Chapter 12, the Windows Update push mechanism; Chapter 13, the layered exclusion method; Chapter 14, advanced diagnostic tools; Chapter 15, the firmware layer; Chapter 16, power and wake; Chapter 17, Hong Kong conditions; Chapter 18, common misdiagnoses and traps; Chapter 19, the repair, replace or upgrade decision framework; Chapter 20, frequently asked questions; and the source list at the end.

---

(End of Part 1.)

9. Device Manager error codes, decoded one by one

9.0 The quick-reference table (layer assignment)

The code-by-code material below takes the Microsoft Support document [A-S1] as its yardstick. Where the official text gives only a cause and a suggested fix without naming a layer, this guide marks the assignment as "inference" and explains the reasoning; it never dresses inference up as an official statement. To see an error code, open Device Manager, double-click a device category, right-click the device, choose Properties, and read the Device status area [A-S1]. Problem codes take the form CM_PROB_XXX and are defined in the header file cfg.h [B-S2]. The Microsoft Support article lists each code's full message, cause and suggested fix, but states explicitly that "this article does not contain all the error codes generated by Device Manager" — a code that is not listed there has to be taken up with the hardware vendor or Microsoft Support [B-S1].

CodeOfficial message (summary)Main layerMechanism in one sentence
Code 1Device not configured correctlyDriver missing / configuration wrongNo driver installed, or the driver is configured wrongly [A-S1]
Code 3Driver may be corrupted, or system memory/resources lowDriver corrupted / resources exhaustedDriver corrupted or memory low [A-S1]
Code 9No valid hardware identification numberHardware / driver defectAn invalid device ID was detected [A-S1]
Code 10Device cannot startDriver start layer / hardware / firmware (the vendor reason string decides)The hardware key often holds a FailReasonString (a vendor-defined error message); without it, the generic message is shown [A-S1]
Code 12Not enough free resources foundBIOS resource allocation / IRQ / I/O / DMA conflictTwo devices given the same I/O port, interrupt or DMA channel, or the BIOS allocated too few resources [A-S1]
Code 14Restart the computer for the device to work properlyTransient (installation unfinished)Restart fixes it [A-S1]
Code 18Driver must be reinstalledDriver layerReinstall the driver [A-S1]
Code 19Registry configuration incomplete or damagedRegistry (Services / Class filters)More than one service defined, service key cannot be opened, or driver name cannot be obtained from the service key [A-S1]
Code 21Windows is removing this deviceTransient (removal in progress)Exists only while a device is being removed after a query [B-S2]
Code 22Device disabledDisabled by the userThe user disabled the device in Device Manager [A-S1]
Code 24Device not present / not working / drivers not all installedInstallation error / hardware faultDevice installed incorrectly; may be a hardware fault or need a new driver [A-S1]
Code 28Drivers not installedDriver missingNo matching driver package available [A-S1]
Code 29Device disabled because firmware did not provide the required resourcesFirmware / BIOSThe device must be enabled in the device BIOS [A-S1]
Code 31Windows cannot load the required driversDriver load layerThe driver cannot load (file, service, or dependency problem) [A-S1]
Code 32Driver (service) disabledRegistry Start valueThe driver's start type is set to disabled in the registry [A-S1]
Code 33The resource requirements cannot be determinedFirmware / resource translation layerThe resource translator failed; use the BIOS setup tool or update the BIOS [A-S1]
Code 34The device must be set up manuallyFirmware / resource translation layerSet it up manually using the device documentation and the device's Resources tab in Device Manager [A-S1]
Code 35System firmware information insufficientFirmware / BIOS (MPS table)The multiprocessor system (MPS) table has no entry for the device; update the BIOS [A-S1]
Code 36PCI interrupt and ISA interrupt translation failedFirmware / resource translation layerChange the IRQ reservation settings in the BIOS [A-S1]
Code 37Cannot initialise the device driverDriver initialisation layerThe driver returned failure while running its DriverEntry routine [A-S1]
Code 38Previous instance of the driver still in memoryDriver unload residue / transientRestart needed [A-S1]
Code 39Cannot load the driver; may be corrupted or missingDriver file / DriverStore corruptedDriver corrupted or missing [A-S1]
Code 40Service key information missing or recorded wronglyRegistry Services keyThe service subkey information is invalid [A-S1]
Code 41Driver loaded but hardware not foundNon-PnP device / hardware missingA driver was installed for a non-PnP device but Windows cannot find the device [A-S1]
Code 42A duplicate device is already runningBus driver error / duplicate enumerationThe bus driver wrongly created two child devices with the same name, or a device with a serial number was found at a new location before being removed from the old one [A-S1]
Code 43Windows stopped the device because it reported a problemDevice fault reported by a driver (driver layer or hardware layer both possible)One of the drivers controlling the device notified the OS that the device failed in some manner [A-S1]
Code 44An application or service has shut down this hardware deviceApplication / service layerAn application or service shut the device down; restart the computer [A-S1]
Code 45Device not currently connected to the computerPhysical connection / enumeration layerA previously connected device is no longer there; reconnecting clears it automatically, no other fix needed [A-S1]
Code 48Device software blocked from startingDriver block list (known incompatible)The software is known to have problems with Windows; get a new driver from the vendor [A-S1]
Code 52Cannot verify the driver's digital signatureSignature layersetupapi.dev.log: CM_PROB_UNSIGNED_DRIVER 0x34 [A-S11]
The key distinction: some codes are "driver layer" (load or start failed), some are "settings layer" (registry damaged), some are "firmware or resource layer" (the BIOS allocated no resources), and some are "status codes" (the device was disabled or is about to be removed). Different layers need completely different fixes [B-S1][B-S2].

9.1 Code 10, "This device cannot start" — the most easily misread code

The official text in full: "This device cannot start. Try upgrading the device drivers for this device. (Code 10)" [A-S1]. The official cause is very short and very important: usually the device's hardware key contains a "FailReasonString" value, whose value string shows an error message defined by the hardware manufacturer; if the hardware key has no such value, the generic message above is shown [A-S1]. Inference (labelled as such): the real diagnostic value of Code 10 hides in FailReasonString — the same Code 10 can carry a vendor string meaning "firmware too old", "device response timed out", or "insufficient resources", which are completely different root causes. The reader should check whether the hardware key (the Enum entry) holds a FailReasonString, not merely copy the generic message. The suggested fix is to update the driver [A-S1], but if FailReasonString points at hardware or firmware, updating the driver will not help — and that is the most common dead end in Code 10 cases.

Layer assignment: the start layer. The PnP manager has already chosen a driver, built the stack, and called DriverEntry or EvtDriverDeviceAdd, but the driver reported a start failure, or the device did not answer during the start handshake. Possible layers: driver version mismatch, firmware too old, hardware not responding (power, contacts, chip failure), or resource allocation failure. How to tell them apart: how the same device behaves in Safe Mode, in another OS, or in another machine; and the !!! lines and error codes in that device's section of setupapi.dev.log [A-S11]. Code 10 (CM_PROB_FAILED_START): "The device cannot start." The driver tried to start the device and failed; the I/O manager had tried to start it with a set of resources [B-S2]. In practice, there may be a vendor-defined failure reason under Code 10. Copy the whole sentence, not just "Code 10". Intel's position on Wi-Fi and Bluetooth is that Code 10 and Code 43 are usually temporary errors produced when Device Manager cannot start a hardware device — a generic message meaning an unspecified problem [B-S27].

9.2 Code 43, "Windows has stopped this device because it has reported problems" — the driver raising its hand

The official cause: "One of the drivers controlling the device notified the operating system that the device failed in some manner." [A-S1] The advice: if the preliminary steps have been tried, check the hardware documentation or contact the manufacturer to diagnose the problem, and manually reinstall the driver (uninstall, then scan for hardware changes) [A-S1]. Second-hand commentary adds: Code 43 is a failure reported by a driver, and Windows disables the device to protect system stability; it can point at a genuine hardware fault, loose cabling or slots, a damaged driver installation, or a power or settings problem [A-S1]. For graphics cards, Code 43 can likewise be caused by a hardware problem or by damaged drivers or settings [A-S1].

Layer assignment: the driver-reporting layer — Windows itself did not diagnose a fault; the driver reported one to the OS. The direction matters: Code 43 is not "Windows says your card is broken"; it is "the driver says the device has a problem, and Windows obeyed and disabled it". Reinstalling the driver is therefore only the first step; if Code 43 persists after a clean reinstall with the vendor's current driver, the power supply, cabling, slot, cooling and firmware have to be checked against the hardware documentation [A-S1].

One sentence that separates them: Code 10 is "it will not get up no matter how often you call"; Code 43 is "it got up, then said it felt unwell, and Windows told it to sit down" [B-S1][B-S2]. The diagnostic fork: if Code 43 survives a reinstall with the vendor's newest driver, suspect power, cooling, firmware or hardware; if Code 43 appears only on one driver version, suspect the driver itself [B-S1].

9.3 Code 28, "drivers not installed", versus Code 1, "not configured correctly"

The official advice for Code 28 is to reinstall the driver manually (uninstall, then scan for hardware changes; if asked for a driver path, download the newest driver from the hardware vendor's website) [A-S1]. The mechanism: the PnP manager enumerated the device and obtained its hardware ID, but searching the DriverStore, Windows Update and the specified paths found no Models section that matched — the ranking list was empty. Common triggers: new hardware, a Windows reinstall before the OEM driver pack was installed, a deleted INF, a DriverStore package deleted by hand, or Windows Update having no driver for that model. Code 1, by contrast, is "the device has no driver installed, or the driver is configured incorrectly" [A-S1] — a driver may exist but be misconfigured (for example, the INF points at the wrong service, or the ClassGUID is wrong). The distinction to write: Code 28 is "cannot find a driver"; Code 1 is "found one but installed it wrong".

Code 28 (installation failed): no driver was selected. The problem is at the "match and install" gate — PnP found no compatible driver (STATUS_PNP_NO_COMPAT_DRIVERS), the driver package is gone, the driver configuration is gone, or the driver package was excluded from migration after an upgrade [B-S34]. Code 28 (CM_PROB_FAILED_INSTALL): installation failed and no driver was selected, but the kernel reported no problem; it can be an inbox system device with no INF file [B-S2].

9.4 Code 31 versus Code 39 versus Code 37: three brothers who fail at loading

All three are "driver load or initialise failed", but they stall at different checkpoints, and they have to be compared side by side:

  • Code 37: the driver returned failure while running its DriverEntry routine [A-S1]. The driver file exists, the signature passed, the service key is correct, the PnP manager loaded the .sys successfully and called its entry point — but the driver itself said "I cannot initialise" (for example, an initialisation command to the hardware went unanswered, resource allocation failed, or a version check did not match). Layer: the driver initialisation layer, very close to hardware — if the hardware does not answer, DriverEntry fails, so Code 37 is often the first software face of a hardware fault.
  • Code 31: "This device is not working properly because Windows cannot load the drivers required for this device." [A-S1] The driver never finished loading — a damaged file, a missing dependent DLL or .sys, a service that cannot start, or a signature problem stopped it before loading. Advice: reinstall the driver with the hardware update wizard [A-S1]. Code 31 (CM_PROB_FAILED_ADD): the driver's AddDevice routine returned an error, or the registry lists no service for the device [B-S2].
  • Code 39: "Windows cannot load the device driver for this hardware. The driver may be corrupted or missing." [A-S1] Very close to Code 31, but the wording points more at the file itself: the driver may be corrupted or missing. The practical distinction (inference, labelled): Code 39 commonly follows a damaged DriverStore package, a hand-deleted FileRepository, or a disk error that stops the .sys from being read; Code 31 more often follows a service, dependency or version problem. The official advice for both is the same manual reinstall (uninstall, then scan for hardware changes) [A-S1], so they can be taught together — but the "file layer versus load layer" way of telling them apart has to be kept: check whether C:\Windows\System32\drivers\.sys exists, and whether setupapi.dev.log shows a file-copy error [A-S11].
The three need different fixes: Code 28 needs "find a driver"; Code 31 needs "fix the loading" (reinstall, check the service key); Code 39 needs "replace the file" (clean reinstall). Writing all three as "update the driver" is misleading [B-S1][B-S2].

9.5 Code 19, Code 40, Code 32: three brothers of the registry layer

  • Code 19: registry configuration incomplete or damaged. Official cause: more than one service is defined for the device, the service key cannot be opened, or the driver name cannot be obtained from the service key [A-S1]. Advice: uninstall and reinstall the driver; or restart into Safe Mode and choose "last known good configuration", or restore from a system restore point [A-S1]. Second-hand practice: damaged UpperFilters or LowerFilters is a common trigger, especially in the CD/DVD class [A-S19]. In practice it is usually filter driver residue (software uninstalled without cleaning UpperFilters and LowerFilters), registry damage, or several driver packages fighting over one service name [B-S1].
  • Code 40: service key information missing or recorded wrongly; official cause: the registry service subkey information is invalid [A-S1]. The difference from Code 19: Code 19 is the "configuration" layer (several services, cannot open the key, cannot get the name), Code 40 is the "service key contents" layer (the values themselves are wrong). Both point at the Services key.
  • Code 32: the driver (service) has been disabled; official cause: the driver's start type is set to disabled in the registry [A-S1] — that is, Start=4. Causes include the user, software, or Group Policy disabling the service, or a previous driver uninstall rewriting Start. Advice: reinstall the driver manually [A-S1].
  • Remember: none of the three is fixed by "downloading a new driver" as such — reinstalling works because the INF's .Services section rewrites the Services key; if the INF itself is wrong or the DriverStore package is damaged, reinstalling the same package writes the same error again, and the old package has to be cleared first (pnputil or a vendor cleanup tool) before installing. The Code 19 versus Code 39 contrast is ideal teaching material: Code 19 means "the settings are broken", Code 39 means "the file is broken". Reinstalling a driver may not help the first (because the problem is in the registry), while it is the correct answer for the second. [B-S1]

9.6 Code 45, Code 24, Code 41, Code 42: the connection and enumeration layer

Need a laptop repair expert?

Free diagnosis · Transparent pricing · No fix, no fee · 180-day warranty

  • Code 45: the hardware device is not currently connected to the computer; a previously connected device is no longer there, and reconnecting it clears the code automatically, with no other fix needed [A-S1]. This is a status code, not a fault code. On a laptop, Code 45 commonly follows a loose internal ribbon cable (commuting vibration, see Chapter 17), a USB device left as a residue entry after being unplugged, or a device that was not re-enumerated after sleep. On seeing Code 45, the first step is a physical check (reconnect, change port, change cable), not a driver reinstall.
  • Code 24: the device is not present, is not working properly, or does not have all its drivers installed; the device was installed incorrectly, which may be a hardware fault or may need a new driver; the device stays in this state after being prepared for removal, and the error disappears once the device is removed [A-S1].
  • Code 41: Windows loaded the driver successfully but cannot find the hardware device; this happens when a driver is installed for a non-PnP device but Windows cannot find the device [A-S1]. The driver layer is fine; the hardware layer is absent.
  • Code 42: a duplicate device is already running; the bus driver wrongly created two child devices with the same name, or a device with a serial number was found at a new location before being removed from the old one [A-S1]. Advice: restart [A-S1]. This can be tied to the real case of USB hubs and docking stations being enumerated twice.

9.7 Code 12, Code 29, Code 33, Code 34, Code 35, Code 36: the resource and firmware layer

This group is rarer on modern laptops, but when one of them appears it points at the BIOS or UEFI, and it must not be skipped:

  • Code 12: not enough free resources found; two devices were given the same I/O port, the same interrupt, or the same DMA channel (by the BIOS, the OS, or both), or the BIOS did not allocate enough resources; one example is a BIOS that allocated no interrupt to the USB controller because the multiprocessor specification (MPS) table was invalid [A-S1].
  • Code 29: the device is disabled because the device firmware did not provide the required resources; the device must be enabled in the device BIOS [A-S1].
  • Code 33: the resource translator failed; the advice is to use the BIOS setup utility or update the BIOS [A-S1].
  • Code 34: the device needs manual configuration; use the device documentation and the "Resources" tab in Device Manager to configure it manually [A-S1].
  • Code 35: system firmware information is insufficient; the MPS table has no entry for the device, and the BIOS must be updated [A-S1].
  • Code 36: PCI interrupt to ISA interrupt translation failed; the IRQ reservation setting in the BIOS must be changed [A-S1].
  • The common thread: the official advice for almost this whole group points at BIOS or UEFI updates or settings, not at reinstalling drivers. Reinstalling a driver a hundred times will never fix a missing MPS table entry.

9.8 Code 48 and Code 52: the blocking and signing layer

  • Code 48: the device software was blocked from starting because it is known to have problems with Windows; a new driver must be obtained from the hardware vendor [A-S1]. The mechanism: Windows keeps a built-in block list of known-incompatible drivers (the Driver Block List), and an old driver is stopped even when its signature is valid. Code 48 (the safety blocking layer): the driver is on Microsoft's vulnerable-driver block list; do not bypass the block; wait for the vendor's fixed version [B-S1].
  • Code 52 (not listed in the official main table, but explicitly mapped in setupapi.dev.log): the driver cannot verify its digital signature; setupapi.dev.log records Device not started: Device has problem: 0x34: CM_PROB_UNSIGNED_DRIVER, where 0x34 is Code 52 [A-S11]. Causes: an invalid or revoked signature, a damaged catalog file, or a driver not signed by Microsoft under Secure Boot. Investigation: use signtool verify to check the .cat file and the embedded signature of the binary [A-S11]. The full Code 52 message reads: "Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source." [B-S38] On 64-bit Windows, kernel-mode drivers are bound by kernel-mode code signing (KMCS); a graphics driver runs in kernel mode and must pass the check before it loads [B-S38].

9.9 The remaining codes: Code 3, Code 9, Code 14, Code 18, Code 21, Code 22, Code 38, Code 44

Code 3: the driver may be corrupted, or system memory or resources may be low; close programs to free memory, then uninstall and reinstall the driver [A-S1]. Code 9: Windows cannot identify the hardware because it has no valid hardware identification number; contact the vendor — the hardware or the driver is defective [A-S1]. Code 14 (CM_PROB_NEED_RESTART): the device needs the computer restarted before it works properly; user mode has reconfigured the device, and the restart is what makes it take effect [B-S2]. Code 18 (CM_PROB_REINSTALL): the device's driver needs reinstalling; it was installed before and now needs to be installed again [B-S2]. Code 21 (CM_PROB_WILL_BE_REMOVED): Windows is removing this device; it exists only during the removal after a query [B-S2]. Code 22 (CM_PROB_DISABLED): this device is disabled; the user disabled it in Device Manager [A-S1][B-S2]. Code 38 (CM_PROB_DRIVER_FAILED_PRIOR_UNLOAD): the driver cannot load because a previous version of the driver is still in memory; restart so the old driver unloads [B-S1]. Code 44: an application or service has shut down this hardware device; the official advice is to restart the computer [A-S1].

9.10 "Device requires further installation" is not an error

The device Properties, Events tab sometimes shows "Device requires further installation". The timestamp of that message is usually older than the "Device installed" entry below it; as long as "Device installed" is there, the driver can be assumed correctly installed, and the message itself has no great significance [B-S25]. The misdiagnosis trap: many users see that sentence, assume the driver is not installed properly, and reinstall it again and again. Read the Events tab in time order, not just the top line. This note cites only second-hand explanation and has no line-by-line confirmation in a first-party Microsoft document, so only say "if 'Device installed' appears below it, it can generally be treated as normal", and do not expand the mechanism [B-S25].
EOF

10. Nine categories of conflict cause, each with its mechanism and its tell-tale clue

10.1 Driver version mismatch (new versus old, 32-bit versus 64-bit, OS version, DCH versus standard)

The mechanism: the INF's DriverVer and TargetOSVersion decoration decide which OS a driver applies to; installing a driver for the wrong OS version means it is refused at ranking time in the mild case, and fails in DriverEntry (Code 37) or blue-screens the machine in the severe case. DCH (Declarative Componentized Hardware) versus the older standard driver is another mismatch line: Intel states officially that on 6th-generation or newer Intel Core processors, installing an Intel generic driver produces an OEM error because the driver already on the system is non-DCH; if the newest DCH driver is already installed, the error does not appear [A-S16]. On 5th-generation or older processors, the OEM driver blocks the system from updating from the OEM driver to the generic Intel driver [A-S16]. How to tell: check the driver's Properties, Driver details, driver version and date, and compare them with the models and OS versions listed on the vendor's support page; the message "The driver being installed is not validated for this computer. Please obtain the appropriate driver from the computer manufacturer." is this category [A-S16].

10.2 Windows Update pushing the wrong, old, or repeated driver

The mechanism is the ranking logic of Part 1, Chapter 6: if a package from Windows Update has a newer DriverVer date and the same signature and identifier scores, it wins the ranking and replaces the existing OEM driver, even when that package has a known problem on that model [A-S6][A-S30]. Second-hand explanation adds that Windows Update may also substitute the basic display driver when it detects a problem with the current driver, making the user think the driver was "downgraded" [A-S30]. The other mechanism is "pushing old": an old OEM driver distributed through Windows Update may carry a date older than the newer version on the vendor's own website, but because the rank is the same and the date is older, it will not automatically replace a newer version the user installed by hand — which produces the apparent contradiction "Windows Update says I am up to date, but the official site has a newer version". That is the ranking logic working normally.

The response (with official or semi-official support): first use Device Manager's "Roll Back Driver" to restore the previous version (an administrator sign-in is required; if the button is greyed out, Windows kept no old version and the previous version has to be downloaded from the GPU or computer vendor) [A-S30]; then use the "Do not include drivers with Windows Updates" policy (a second-hand source says it applies to Windows 10 version 1607 and later and to Windows 11) to stop ordinary quality updates pushing drivers again [A-S30]; or use Microsoft's "Show or hide updates" tool (wushowhide.diagcab) to hide one specific problem driver update [A-S30]. Note: pausing updates only postpones the problem and should not be treated as a long-term solution, because it also postpones security and quality fixes [A-S30]. The full blocking methods and their limits are in Chapter 12.

10.3 OEM drivers versus generic (chip-vendor) drivers: the number-one structural cause

This is the number-one structural cause of driver conflict on laptops, and it needs a whole section of its own. Intel's official warning reads: "Installing this graphics driver from Intel may overwrite customizations from your Computer Manufacturer (OEM). If a newer graphics driver is available from your computer manufacturer, we recommend you install that driver instead." [A-S15] When IDSA detects an installed customised graphics driver, it warns that it will overwrite the computer manufacturer's customisation with the Intel generic driver [A-S15]. Intel also states plainly: Intel generic graphics drivers are not validated for individual PCs, so problems specific to that system may appear; if problems appear after installation, reinstalling the newest graphics driver from the computer manufacturer restores the original state; if the OEM driver is no longer available and the roll-back option is still usable, roll back [A-S15].

The mechanism: an OEM driver is not just "the same chip plus a different version number". It can contain a power table tuned to that machine's cooling and power limits, panel-specific colour and refresh-rate settings, special function-key and Fn-key mappings, MUX or Optimus switching logic, and audio bindings (Realtek plus Waves MaxxAudio and similar). A generic driver does not know about any of that customisation; it may "work", but it loses features or introduces instability. Second-hand Dell community discussion makes the same point: Dell uses custom hardware implementations and therefore needs custom drivers, and Realtek audio needs a Dell model-specific driver for normal operation and jack detection [A-S15]. The mitigation on 6th-generation and newer Intel platforms: an ordinary update can keep the OEM customisation, and the OEM can maintain the customisation separately through Windows Update [A-S15]; but a clean installation may overwrite the customisation [A-S15]. Intel's community official reply also advises: do not tick "clean installation", because that uninstalls the existing driver and removes the ability to roll back; first try the newest Intel driver without a clean installation, and if it does not work well, rolling back is still possible [A-S16].

The decision rule, writable as a flow: first, get the driver from the computer manufacturer's support page (searching by exact model or serial number); second, only consider a generic driver when the OEM has stopped providing new drivers, or when you specifically need a new chip-vendor feature or game fix and accept that customisation may be lost; third, when a generic driver causes problems, the first step is to reinstall the OEM driver, not to try another generic version [A-S15][A-S16]. Lenovo's support page is a good example of the structure: enter the model or serial number to reach the driver list, with BIOS and UEFI in their own category, and the applicable models, OS and version stated [A-S28]; Lenovo Vantage and System Update can also scan by exact model and install the applicable drivers and BIOS updates [A-S29].

10.4 Dual-GPU switching conflicts (Optimus, MUX, AMD Switchable Graphics)

The mechanism comes in three kinds, and the three must be kept separate, never mixed together [A-S25]:

  • NVIDIA Optimus (no MUX, muxless): the integrated GPU always handles display output; the discrete GPU is a co-processor, and each frame a game renders on the discrete GPU is handed back to the integrated GPU for output — a little like having vsync permanently on, with the two GPUs taking turns [A-S25]. Switching is a driver-level intelligent judgement: the NVIDIA driver detects what an application needs and switches to the discrete GPU under heavy load [A-S25]. Common triggers: a driver update resetting the settings, Windows Update installing a mismatched driver, an old game that only queries the first adapter (sees the integrated GPU and stops), or a laptop stuck in power-saving mode with the integrated GPU locked in [A-S25].
  • MUX Switch (multiplexer, hardware direct connection): the discrete GPU can bypass the integrated GPU and drive the display directly, with lower latency and better performance [A-S25]. The price is a clear drop in battery life; some newer machines have Advanced Optimus, which switches automatically without manual switching [A-S25]. How to check: the vendor's companion application (ASUS Armoury Crate, MSI Center and similar) has a MUX or display mode switch [A-S25].
  • AMD Switchable Graphics and Enduro: old-style Switchable Graphics required manual switching between power-saving and high-performance modes, with no dynamic real-time switching; Enduro, launched in 2013, was AMD's answer to Optimus — dynamic real-time switching [A-S25]. AMD dual-GPU management relies on a software solution inside Radeon Software, with no equivalent of NVIDIA's NvOptimusEnablement registry key [A-S25].
The conflict shapes: first, the two GPU drivers are version-mismatched — for example, the Intel integrated driver has been updated to a new DCH version while the NVIDIA driver is still old, and the two fail their handshake in the Dxgkrnl layer (inference), so the discrete GPU reports Code 43 or simply disappears from Device Manager; second, Windows Update updates only one of the two GPU drivers, breaking a pairing the OEM tested; third, the user disables one of the GPUs in Device Manager (see Code 22), breaking the switching chain; fourth, the NVIDIA Control Panel goes missing — second-hand explanation notes that a graphics driver installed by Windows can break Optimus switching, and if the NVIDIA Control Panel is missing, the correct driver should be downloaded from the laptop manufacturer's website [A-S25]. How to tell: Task Manager, Performance, GPU 0 and GPU 1 — if the discrete GPU sits at 0–5% usage while the integrated GPU carries load during a game, the game is running on the integrated GPU [A-S25]. Prove it with Task Manager, rather than guessing from "the game stutters". The correct order (inference): install the chipset and integrated display driver first, then the discrete display driver; prefer the OEM package, and do not skip the OEM to install a generic driver directly.

10.5 Old driver residue (registry, DriverStore and file residue, all three)

The mechanism: when a driver is uninstalled — especially when "Uninstall device" is used without ticking "Delete the driver software for this device" — the package in the DriverStore, the registry Services key, the Class key filter values, and the control panel and services under Program Files can all be left behind. The next time a new driver is installed, the PnP manager may bind the old package again because of ranking logic (an old package with an older DriverVer date can still win if its identifier score is higher), or new and old .sys and DLL files may load mixed together (for example a new UMD with an old KMD), producing intermittent Code 43 or TDR. That is exactly where DDU fits: it removes GPU driver files, services, settings and DriverStore packages more thoroughly than a standard uninstall [A-S20]. But DDU is not magic: it cannot repair hardware defects, overheating, insufficient power, memory faults, or wider Windows damage [A-S20]. The right occasions are switching GPU vendors (NVIDIA to AMD to Intel), or when ordinary installation methods cannot solve the problem; it should not be a routine step at every update [A-S20]. Intel's official support article also uses DDU as the step for removing a graphics driver (as cited in second-hand reviews) [A-S20].

What the "delete the driver" tick actually does when uninstalling a device: unticked, it only removes the devnode binding; the package stays in the Driver Store, and the next scan for hardware changes will very likely bind the same package again — which is why "I uninstalled it, rebooted, and the yellow triangle came back". Ticked, it also deletes that driver package from the Driver Store (the equivalent of pnputil /delete-driver /uninstall); at the next enumeration, the PnP manager has to find another, lower-ranked package, or look on Windows Update [B-S6]. The trap: after ticking it, if no other driver is available, the device becomes Code 28 (driver not installed) — that is not "fixed". So the correct order is: download the correct driver installer first (an offline backup), and only then tick delete. Intel's official guidance for Wi-Fi and Bluetooth problems says the same thing: "If you follow the clean install process, download the driver first, then uninstall." [B-S27]

10.6 INF conflicts (two INFs claiming the same hardware ID)

The mechanism: two different vendors' or versions' INFs both list the same hardware ID in their Models section (for example a generic chip driver and an OEM customised driver, or two versions of the same driver sitting side by side in the DriverStore). The PnP manager picks one by ranking; if the winner's DDInstall section points at the wrong .sys or service name, the device reports Code 31, 39 or 37. The other shape is an INF whose TargetOSVersion decoration does not match the current OS, so the match is excluded at the search stage and the device becomes Code 28 — even though a "looks right" driver is plainly sitting in the DriverStore. How to tell: setupapi.dev.log lists each candidate package's rank and signature type [A-S7]; pnputil /enum-drivers shows how many oem*.inf files coexist. The fix is to remove the wrong or duplicate package (pnputil /delete-driver), not to pile a third driver on top.

10.7 Signature failure (expired, revoked, damaged catalog, Secure Boot)

The mechanism is in Part 1, Chapter 3. The specific triggers: the driver's catalog file (.cat) is damaged by a disk error or a bad copy, and signature verification fails (setupapi.dev.log shows 0x800b0109, "the certificate chain was processed, but terminated in a root certificate which is not trusted by the trust provider" [A-S11]); the certificate was revoked; the system clock is wrong, so a certificate is judged expired or not yet valid; or Secure Boot is on and the driver was never signed by Microsoft. Investigation: the sig: lines in setupapi.dev.log, signtool verify, and the Event Viewer Code Integrity log [A-S11]. Never "fix" a signing problem by turning off Secure Boot or disabling signature enforcement permanently — that removes a defence; it is not a repair [A-S32].

10.8 Firmware, BIOS and UEFI too old

The mechanism: the BIOS or UEFI is the only witness that reports a device to the PnP manager before the OS loads. If the firmware's ACPI table, MPS table or resource allocation table has a missing or wrong entry, the PnP manager reports Code 12, 29, 33 or 35 (see 9.7), or the device is never enumerated at all. Lenovo's BIOS update package description is a model example: the package updates the UEFI BIOS stored in the computer, to fix problems, add features or extend functions; before updating, the applicable model and version must be confirmed, and there are model-specific warnings (for example, the ECP version must first be raised to a specified version, or the update process may stall) [A-S27]. UEFI firmware can also be pushed as a Windows Update "system firmware" driver (hardware ID UEFI\RES_{GUID}) [A-S28]. Remember: a BIOS update is a risky operation — a power cut mid-update can brick the motherboard; it must be done on mains power, never on battery alone, and only with the official package for the exact model. A BIOS update is not "update because there is a new one"; it is "update because there is a matching fix". The full firmware layer is Chapter 15.

10.9 A hardware fault itself, misread as a driver problem (the reverse misdiagnosis)

The mechanism: the driver is the hardware's translator — when the hardware does not answer, the driver can only report failure to the OS, and the OS can only show Code 10, 43 or 37. A reader who sees the words "driver problem" naturally assumes reinstalling the driver will fix it, but the root cause is in the hardware layer: damaged VRAM, an ageing power module (VRM), an oxidised or loose PCIe gold finger, a cracked BGA solder joint, or a stopped fan causing overheating and throttling that ends in a timeout (TDR). Second-hand GPU repair explanation notes that degraded VRAM, a dying VRM, a cracked BGA joint or a damaged PCIe edge connector show up as "every driver repair does nothing" Code 43 [A-S24]. How to tell (see the cross-testing in Chapter 13): does the same driver fail the same way on another machine or another OS (for example a Linux Live USB)? Does the code persist in Safe Mode? Does anything change after reseating, changing slots, or changing cables? If all three point at hardware, continuing to reinstall drivers only wastes time.

11. Device classes, one by one: mechanism first, then the typical codes

Class by class below: for each one, first look at how the hardware talks to Windows (bus and driver model), then at which link breaking produces which code, and finally at how to tell a driver fault from a hardware fault — "update the driver and it will be fine" is not the answer; finding which link broke is.

11.1 Graphics drivers (NVIDIA, AMD, Intel): TDR is the core mechanism

WDDM and TDR are covered in Part 1, Chapter 8. Graphics driver conflicts come in three shapes. First, cross-vendor residue: switching from NVIDIA to AMD (or the reverse) while the old driver is left behind, so the two vendors' driver files, services and registry entries fight each other. The fix is DDU or a vendor cleanup tool (see 13.3). Second, integrated plus discrete dual-display conflict (switchable and MUX laptops): the laptop has both an Intel integrated display and an NVIDIA or AMD discrete display. The two drivers have to cooperate: the integrated display handles output and the discrete display handles computation (or switching goes through the MUX). If the integrated driver version and the discrete driver version do not match, or the OEM's customised switching logic has been overwritten by a generic driver, the result is a black screen, flicker, or Code 43. Third, Windows Update overwriting the OEM customisation: the generic display driver pushed by Windows Update ranks above the OEM customised driver (see Chapter 12), and overwriting it loses the OEM's colour, power-saving and fan-curve settings. The symptom is not a yellow triangle but "features have disappeared" — the case most easily misdiagnosed as "the hardware is broken" [A-S15].

11.2 Wi-Fi and Bluetooth drivers: a shared module, shared firmware

Intel's official statement on Wi-Fi and Bluetooth Device Manager error codes: Code 10, 22, 28, 31, 43 or 45 can appear when Bluetooth cannot be enabled, when a yellow exclamation mark sits next to a Bluetooth or wireless device, or when the device Properties show "This device cannot start. (Code 10) STATUS_DEVICE_POWER_FAILURE" [B-S27]. Mechanism point one: Wi-Fi and Bluetooth are usually one M.2 card with a shared firmware loader. Taking Intel AX201 and AX211 as examples, Wi-Fi and Bluetooth share one module; if Bluetooth is missing too, installing only the Wi-Fi driver is not enough — the Intel Bluetooth package has to be installed as well. Installing only half may leave the module half-initialised (inference). Mechanism point two: the firmware blob. The inbox driver from Windows Update is sometimes only the minimum package that makes the device "appear in Device Manager", without the firmware blob and radio tuning tables in the vendor's full package; the result is a device that appears but cannot connect or keeps dropping. That is the common root of "Device Manager shows no yellow triangle but Wi-Fi does not work". Mechanism point three: power state. Code 10 often follows a sleep or hibernate wake: the device enters a power-saving state and cannot recover correctly. Intel's suggested investigation includes a cold reboot (a full power-off restart), not an ordinary restart [B-S27]. Driver source order (Intel's official advice): try the OEM driver first; only if the error persists, try the Intel generic driver. [B-S27] The reason: the OEM package contains the antenna settings for that chassis; the generic driver may not. Typical codes: Code 10 (cannot start, common with firmware load failure or power-state failure), Code 43 (device reported a problem, common when a power-state transition does not complete), Code 28 (the driver was removed by an update or a cleanup tool), Code 45 (device not connected — the M.2 card may be loose, the BIOS may have switched the radio off, or the hardware may be faulty).

11.3 Audio drivers: UAD versus HDA is the dividing line

Modern Windows 11 systems use the UAD (Universal Audio Driver) DCH model: the driver is customised by the computer vendor for the model, and works together with Realtek Audio Console (a Microsoft Store application). The older HDA (High Definition Audio) driver is a different family. The root of the conflict (inference): installing a legacy HDA package on a UAD system (or mixing the two) causes installation failure and a device that cannot work. Realtek's public High Definition Audio Codecs page still offers legacy packages (R2.83, supporting Vista to Windows 10), but a modern Windows 11 machine expects the vendor-customised UAD package. The symptom spectrum: "No audio output device is installed", with the sound settings greyed out; Realtek(R) Audio yellow-triangled under "Sound, video and game controllers" with Code 10 or Code 39; the troubleshooter reporting "generic audio driver detected", meaning Windows fell back to the basic driver because the Realtek driver could not load; Realtek Audio Console failing to open or saying it cannot connect to the RPC service — usually the UAD driver and its background service are not both present. Intel Smart Sound Technology (SST) is another layer: on many Intel platforms, audio has to pass through the SST driver before it reaches the Realtek codec; if the SST driver fails, Realtek reports Code 10 as well. Check SST before repairing Realtek. The HDMI audio split misdiagnosis: after a Windows Update, the default playback device may have changed to the HDMI output (the monitor), the hardware is fine, but the user hears nothing. That is not a driver error; it is a default-device setting — check the sound settings before touching the driver.

11.4 Chipset and Intel ME drivers: driver is not firmware is not software

Three different things, never to be mixed up: first, the chipset driver: it lets the OS recognise the system devices on the motherboard (PCI, SMBus, Serial IO and so on); second, the Intel MEI driver (Intel Management Engine Interface): the interface through which the OS talks to the ME firmware inside the chip, usually shown in Device Manager as Intel(R) Management Engine Interface under "System devices"; third, the ME firmware: firmware burned into the motherboard — updating the driver does not update the firmware; a firmware update is a separate, independent step [B-S29]. ME software components (SWC): besides the MEI driver itself, there are DAL, ICLS, LMS and other components, and the installation order matters — if Windows Update and the user install at the same time, the old and new versions can conflict. Practical experience in the community (inference) is that the four drivers (MEI plus three SWC) should be installed in one go and then rebooted, without giving Windows Update time to insert an old version in the middle. Lenovo's preconditions (hard evidence of firmware-layer interaction): the ME firmware update package for some ThinkPads states explicitly that the BIOS must be at a certain version or above and the EC firmware (ECFW) must be at a certain version or above before it is compatible; and downgrading ME firmware is not allowed; the system drive must not be encrypted, and BitLocker must be paused or decrypted before updating [B-S29]. Another Lenovo example: a BIOS update package states explicitly that "this BIOS (v1.16) is required to update the Intel ME firmware (v16.1.32.2418)" — the BIOS-to-ME-firmware dependency has an order, and it cannot be skipped [B-S30]. Symptoms of an MEI driver problem: a yellow triangle in Device Manager (usually Code 10 or Code 52), system instability, degraded performance, and Windows Update reporting a chipset update failure. Three questions to ask: "Which did you update — the driver, the firmware, or neither?" Many "the ME driver will not install no matter what" cases turn out to be firmware too old for the driver to cooperate with.

11.5 USB controllers: xHCI is the hub

The host controller for USB 3.0, 3.1 and USB4 is called xHCI (eXtensible Host Controller Interface); in Device Manager it is "USB xHCI Compliant Host Controller". The special thing about Code 10 on xHCI: it often comes with "the system cannot shut down or restart normally" — because the USB controller takes part in power management, and if it cannot start, the shutdown sequence stalls [B-S39]. Causes by layer: driver layer — a chipset driver that is out of date or incompatible (especially on a machine upgraded from Windows 7 or 8 that the vendor says does not support Windows 10); firmware layer — the BIOS xHCI setting (Enabled, Auto, or Disabled), or a bug in the BIOS itself; power layer — USB selective suspend putting the controller to sleep and not waking it; hardware layer — a physically damaged USB port, static, or a faulty controller. The ghost-device role: residue entries from old USB devices (see 14.1) can fight new devices for resources; the Microsoft Q&A advice includes showing hidden devices, uninstalling ghost USB drivers, and then installing the newest chipset driver [B-S39]. Code 43 on USB: usually one particular USB device (not the controller itself) reporting a problem; unplug USB devices one by one to tell whether it is the controller or one particular flash drive or external hard disk. A damaged file system on an external hard disk may drag down the shared USB storage driver, showing up as a whole group of USB devices with Code 43 (inference).

11.6 Printer drivers: Type 3 versus Type 4, and driver isolation

Printer drivers are different from other devices: they run inside the Print Spooler, in two kinds — Type 3 (old style, vendor driver, running inside the spooler process) and Type 4 (new style, based on XPS and the class driver, more isolated). The conflict shape: a Type 3 driver crash brings down the whole spooler, so all printers stop together; Type 4 is relatively isolated, so one driver failing does not drag the others down. Windows Update printer drivers: Windows pushes printer class drivers through Windows Update; if a vendor's full-feature package (scan, fax, status monitoring) is overwritten by a class driver, printing may work fine while scanning and ink monitoring disappear — again "features disappeared" rather than a yellow triangle. Typical codes: Code 31 (cannot load the printer driver, common with a damaged driver or a spooler problem), Code 28 (printer driver not installed, common when installing from a network share fails). DeviceSetupManager events 131, 200, 201 and 202 are usually connection or metadata warnings: DeviceSetupManager handles device metadata (device icons and so on); when it cannot reach Windows Update or the metadata service it records a warning, but that does not necessarily mean the printer is broken (see 14.3).

11.7 Touchpad, fingerprint and camera drivers: three doors into the Hello ecosystem

Touchpad. Most modern laptop touchpads are Precision Touchpads (PTP): the driver is Microsoft's PTP standard driver plus vendor firmware; older Synaptics and ELAN touchpads use a vendor-specific driver plus a control centre. The conflict: after a vendor's old touchpad driver is installed, Windows Update pushes the PTP driver, and the two drivers fight over the same device; the symptoms are missing gestures, an intermittently dead touchpad, or Code 10. The layering: a touchpad connects over I2C or USB; if the I2C controller driver (Serial IO) fails, the touchpad disappears with it — check Serial IO and the chipset before repairing the touchpad.

Fingerprint (biometrics). A fingerprint sensor sits under Biometric devices in Device Manager; its driver has to work with the Windows Biometric Service (wbiosrvc) and Windows Hello before it can be used [B-S26]. The special use of Feature Score (see Part 1, Chapter 6): Microsoft advises legacy biometric drivers to use feature score 0xa0, while WBDI (Windows Biometric Driver Interface) drivers use a lower (better) score; that way Windows Update only installs a WBDI driver on a system that has no biometric driver yet, and a user who wants the legacy stack can manually install the higher-ranked legacy driver to override it [B-S26]. Dell's warning: Dell Data Protection Security Tools and Windows Hello cannot both be configured for biometrics; if fingerprints are enrolled on both sides, sign-in fails, and one side has to be cleared first [B-S28]. The firmware layer: some Dell fingerprint readers need the driver and the firmware updated together (the ControlVault driver plus the ControlVault firmware); updating only the driver is not enough [B-S28]. Typical codes: Code 10 (device cannot start, common with ELAN, Goodix or Synaptics sensor drivers that are incompatible, especially after Windows 11 24H2); Code 28 (driver missing). The fork: if the fingerprint option is completely absent from "Settings, Accounts, Sign-in options", it is not necessarily a driver problem — the TPM may not be enabled (Windows Hello fingerprint enrolment needs a TPM) [B-S28], or the BIOS may have switched the camera or fingerprint device off.

Camera (Windows Hello face). Windows Hello face needs an infrared (IR) camera, not an ordinary RGB camera; the IR camera has its own driver. The common misdiagnosis: a user who sees "cannot find a camera compatible with Windows Hello face" assumes the camera is broken; the truth may be that the IR camera driver is not installed, the BIOS switched the camera off, or an ordinary camera driver was installed instead of the HelloFace driver. Camera drivers are also affected by the privacy setting: Settings, Privacy, Camera — if camera access is turned off, applications will say the camera is missing, and that is not a driver error. Typical codes: Code 10 (the IR camera cannot start), Code 45 (the camera is not connected — a loose ribbon cable is possible, common on clamshell laptops).

12. Windows Update and the driver push mechanism: who wins is not decided by "newest"

12.1 Two-phase search (Windows 10 and 11)

Windows 10 matches in two phases [B-S5]: phase one, install the best-matching driver package from the DriverStore first, so the device works quickly; phase two, download a better-matching package from Windows Update into the DriverStore, and at the same time search the preload locations named by the DevicePath registry value (by default %SystemRoot%\INF). If a better match is found, it replaces the one installed first [B-S5]. The 24-hour rule: from Windows 10 1703, if the DriverStore already holds a matching driver, plugging in a device does not search Windows Update immediately; it waits for the next regular daily scan (up to 24 hours later) [B-S5].

12.2 Windows Update's three classes: critical, automatic, optional

Microsoft's rule (Windows 10 1709 and above) [B-S5]: Windows Update provides the best-matching driver package, not necessarily the newest. The selection considers the hardware ID, the date and version, and the critical, automatic, or optional classification. Windows Update prefers critical or automatic driver packages; only when no matching critical or automatic package is found does it look at optional ones. The result: an older critical driver, all other things being equal, is preferred over a newer optional driver. [B-S5] From Windows 10 2004, Windows Update automatically provides only the best-matching automatic or critical driver (searching the computer and Windows Update together); optional drivers have to be found under "Settings, Update & Security, Windows Update, View optional updates, Driver updates" [B-S5]. Optional drivers are never installed automatically. Microsoft's user guidance states plainly: an optional driver is only installed when the user chooses it, and if there is no specific problem, it does not need to be installed.

12.3 How to stop Windows Update overwriting an OEM driver (four methods, with limits)

MethodWho it suitsWhat to doThe limit (must be stated)
A. Do not install optional driversAll usersSettings, Windows Update, Advanced options, Optional updates — tick only the driver related to the problem, nothing elseOnly blocks optional drivers; recommended and critical drivers still install automatically
B. Group Policy "Do not include drivers with Windows Updates"Pro, Enterprise, Education (with gpedit.msc)Computer Configuration, Administrative Templates, Windows Components, Windows Update — enable "Do not include drivers with Windows Updates"A second-hand source (Endpoint Weekly) notes: it does not apply to drivers built into the OS, including drivers bundled in security or major updates; it does not stop dynamic installation of drivers needed to complete an upgrade during a feature update. It is not a master switch [B-S36]
C. Registry or MDM equivalentHome edition (no gpedit) or MDM-managed devicesUnder HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate, add DWORD ExcludeWUDriversInQualityUpdate = 1; MDM uses the same setting in the Update CSPSame limits as B; if the registry value does not exist, it means "never blocked" — when repairing, first check whether the value really exists, and do not assume a runbook that said so means it was done [B-S36]
D. Show or Hide Updates troubleshooter (wushowhide.diagcab)All versions, for one driver update at a timeDownload wushowhide.diagcab from Microsoft, hide the specified driver update, and Windows will not install it automatically againOnly blocks that one update; when the vendor releases a new driver version, it returns as a new update; the tool itself is no longer prominently offered on Microsoft's website, so follow whatever route Microsoft provides at the time and do not hard-link it (the link may die)
An addition: Device Installation Restrictions — Group Policy can block the installation of a specific device or driver by hardware ID. That is the most precise block (not "no Windows Update drivers at all", just "not this driver for this hardware ID"), but it is complicated to set up and suits advanced users or IT administrators only. It has to be said plainly that "no consumer switch can guarantee that no driver will ever be installed". Any tutorial claiming "one click permanently stops Windows driver updates" is exaggerating. The honest expectation is: B and C block most drivers in quality updates, but feature updates and OS-built-in drivers are exceptions.

12.4 How to prove which driver Windows Update pushed (forensic method)

Look at the section headings in C:\Windows\INF\setupapi.dev.log (see 14.2): a Windows Update push opens a section called Device Install (Install Windows Update driver), the cmd: line reads wuaucltcore.exe (from C:\Windows\UUS), there is a Flight Id, and the INF source is C:\Windows\SoftwareDistribution\Download\Install [B-S36]. A driver bundled in a cumulative update opens Stage Driver Updates, driven by TiWorker.exe, with a different INF source [B-S36]. A plug-and-play event opens Device Install (Hardware initiated), with no cmd: line [B-S36]. Why this matters: the same symptom (for example, a fingerprint that suddenly stops working) can have three different causes (a Windows Update push, a driver bundled in a cumulative update, or a driver the user installed wrongly), and each cause needs a different fix. Read the log first, then choose the policy; do not guess.

12.5 Driver rollback: the mechanism and its limits

Location: Device Manager, device, Properties, Driver tab, Roll Back Driver. The mechanism: Windows keeps only the one driver package immediately before the current version as the rollback target. Rolling back binds the device to that old package; it is not "restoring the whole system". When the Roll Back button is greyed out (unusable) (the general principle: Windows has no old driver package to restore): the current driver is the first driver ever installed after a fresh install (there never was an old version); the last install used a clean install, a factory reset, or DDU, which deleted the old package; a rollback has already been done once — Windows does not keep a chain of old versions, so after one rollback there is nothing older; the old package was cleaned out of the DriverStore (for example by pnputil /delete-driver or by disk cleanup). Rollback is not a permanent block: Windows Update or a vendor tool may push the newer driver again later; after rolling back, the blocking measures in 12.3 have to be applied, or the machine will "wake up upgraded again". Rollback is not a downgrade to any version: to go back three versions, Device Manager cannot do it; the specified old version's installer has to be downloaded by hand and installed with a clean install or factory reset.

13. The layered exclusion method: a diagnostic order from soft to hard

This chapter works as a flowchart plus a checklist, with each step stating "what to do, what to look at, what each result means, and where to go next". The ordering principle: increasing irreversibility, increasing destructiveness, increasing cost. Do not start with DDU, do not start with reinstalling Windows, do not start by opening the machine.

Layer 0: Record (5 minutes, zero risk)

Copy down the device name, the exact error code, the driver version and date (Device Manager, Properties, Driver tab), the Windows version and build, and the recent changes (Windows Update date, driver update date, newly installed software, any knock, water, or damp) [A-S1][A-S30]. The timeline is the mother of diagnosis: broke after an update, suspect the driver or ranking layer first; slowly got worse for no reason, suspect hardware ageing, cooling or contacts; broke after damp or impact, suspect the physical layer first (see Chapter 17). Screenshot the Device Manager device-status text (including FailReasonString if present) and the relevant Event Viewer events, for later comparison. Back up data before any driver operation: before anything involving pnputil /delete-driver /force, DDU, a BIOS update, or Driver Verifier, important data must be backed up. A driver operation itself does not delete user files, but if the operation fails and the machine will not boot, getting the data back becomes hard.

Layer 1: The Device Manager layer (restart, disable and enable, roll back)

  • Restart the computer. The official advice for Code 14 (needs a restart), Code 38 (the previous driver instance is still in memory), Code 42 (a duplicate device), and Code 44 (an application or service has shut down the hardware) is all the same: restart [A-S1]. Do not dismiss this step: while the old instance of a driver is still resident in memory, the new driver cannot load at all.
  • Disable, then enable the device. The official fix for Code 22 is to enable the device [A-S1]; for other codes, disable and enable forces the PnP manager to rebuild the stack and run DriverEntry again — a low-cost "soft reset".
  • Roll Back Driver. If the fault appeared immediately after a driver update and the Roll Back button is available, roll back at once (administrator rights are required) [A-S30]. Rollback restores the driver package Windows kept; it does not go online to find an old version [A-S30]. If the button is greyed out, no old version was kept, and the previous version has to be downloaded from the vendor [A-S30].
  • Scan for hardware changes. After uninstalling a device, use Action, Scan for hardware changes, so the PnP manager re-enumerates and re-matches the driver [A-S1]. This is the official shared step for Code 18, 28, 31, 39 and several other codes [A-S1].

Layer 2: Event Viewer plus setupapi.dev.log (read the logs, do not guess)

Event Viewer: Windows Logs, System, filtered by source Display (Event ID 4101 = TDR), Kernel-PnP (Event 219 is commonly seen on driver load failure, second-hand guidance) [B-S23], Kernel-Power (Event 41 = unclean shutdown, not TDR) [A-S24], and WHEA-Logger (CPU, PCIe or memory hardware errors — if one appears with a 4101, the GPU driver is only a bystander) [A-S24]. The key discipline: only accept events from the same minute as the symptom; an isolated old event is not evidence [A-S24]. setupapi.dev.log: at %windir%\inf\setupapi.dev.log, where SetupAPI (the Windows component that manages device installation) records device installation activity; lines marked !!! are errors and ! are warnings; find the relevant device section by installation time and check the device instance ID and error code [A-S11]. Microsoft's official troubleshooting document teaches: before installing a driver, rename the old log so the installation produces a fresh log; open the log and look for the exclamation marks, especially next to the driver binary; and use signtool verify to check the .cat file and the embedded signature of the binary [A-S11]. NVIDIA's official material also asks users to provide C:\Windows\INF\Setupapi.*.log (all logs starting with SetupAPI) together with its installer log to help diagnosis, and teaches users to look in the log for lines starting with !!!, for example !!! flq: Error installing file (0x00000005) (access denied) or Error 1459 (this operation needs an interactive window station, usually pointing at an OS disk permissions problem) [A-S17]. Reliability Monitor: perfmon /rel shows faults and LiveKernelEvent records, as a supporting view to Event Viewer [A-S24]. Get-PnpDevice (PowerShell): Get-PnpDevice -Class Display | Format-List Status,Class,FriendlyName,InstanceId,Problem lists the status and problem code of every display-class device in one go [A-S24].

Layer 3: Driver rollback and clean installation (three grades, light to heavy)

  • Grade 3a: the vendor installer's "clean install" option. NVIDIA installer: choose Custom (Advanced), then tick "Perform a clean installation", which resets NVIDIA profiles and settings and then reinstalls the selected core components [A-S20]. AMD installer: the Clean Install option tries to remove the detected Radeon Software and AMD driver before installing the selected components; Factory Reset is another option, which removes all old AMD Software packages, pauses Windows Update, restarts, and then continues the installation [A-S20]. Note: AMD's Clean Install removes Device Manager's rollback path [A-S20]; Intel's clean install carries the same warning — ticking it uninstalls the existing driver and removes the ability to roll back [A-S16]. Note: before a clean install, confirm the correct driver is already downloaded, back up the settings profile, and know that rollback will no longer be available.
  • Grade 3b: vendor cleanup tools. AMD Cleanup Utility: an AMD official tool that removes AMD graphics and audio drivers and software; AMD advises running it in Safe Mode for best results; it creates a system restore point; brief black screens or flicker during cleanup are normal; it does not remove AMD chipset drivers [A-S20][A-S18]. On the Intel side, Intel's official support article uses DDU as the step for removing a graphics driver (as cited in second-hand reviews) [A-S20].
  • Grade 3c: DDU (Display Driver Uninstaller, Wagnardsoft). DDU removes GPU driver files, services, settings and DriverStore packages more thoroughly than a standard uninstall; the developer advises using it in Safe Mode for the most stable cleaning environment [A-S20]. The right occasions: switching GPU vendors, or when ordinary methods cannot solve the problem; it should not be a routine step at every update [A-S20]. The operating discipline: download the replacement driver and keep it on the machine first (do not install it yet), disconnect the network (so Windows does not download a GPU driver immediately after the restart and undo the cleanup), enter Safe Mode (sign in with the account password — a Windows Hello PIN may not work in Safe Mode), choose the correct vendor, and click "Clean and restart" [A-S20]. DDU's limits have to be stated: it cannot repair hardware defects, overheating, insufficient power, memory faults, or wider Windows damage [A-S20]. Note: DDU is not a Microsoft official tool; it is a third-party tool, and must never be written as "Microsoft recommends DDU". It must also warn that cleaning the wrong thing (for example, picking the wrong vendor) can leave the integrated display without a driver and the machine black on boot — before operating, confirm which display is discrete and which is integrated. It is not a routine tool: for a routine upgrade from one version to the next by the same vendor, the vendor installer's clean install option is enough; using DDU at every upgrade is over-cleaning, and it can also remove OEM customisations (for example a laptop's MUX or power-saving settings). The vendor equivalent: AMD Cleanup Utility (AMD advises running it in Safe Mode) [A-S18].
The mechanistically correct "clean reinstall" flow, in eight steps: first, record the device name, hardware ID, current driver provider, date and version, problem code, and event time. Second, download the driver from the computer vendor's (OEM) support page, by exact model first; if there is none, download from the chip vendor (Intel, NVIDIA, AMD, or Realtek). Download first, delete afterwards. [B-S27] Third, back up with pnputil /export-driver * (optional, but worth doing before a reinstall) [B-S6]. Fourth, uninstall: Device Manager, Uninstall device, tick delete the driver (or pnputil /delete-driver oem#.inf /uninstall) [B-S6]. Fifth, restart (not shut down — see Chapter 16 on Fast Startup; only "Restart" is a complete boot). Sixth, install the downloaded driver, and restart again if the installer asks. Seventh, verify: no yellow triangle in Device Manager; pnputil /enum-devices /instanceid /drivers shows the correct version; Event Viewer shows no new Kernel-PnP error. Eighth, observe: do not install five drivers at once — change one, test once, or nobody will know which change broke it.

Layer 4: SFC and DISM (the system files layer)

The order is DISM first, SFC second. Microsoft's repair order is: first run DISM.exe /Online /Cleanup-image /Restorehealth to repair the component store (at C:\Windows\WinSxS), then run sfc /scannow, because SFC replaces damaged protected system files with healthy copies from the component store; if the store itself is damaged, SFC reports files it cannot repair [A-S21]. DISM's read-only checks are /CheckHealth (a quick report on whether damage has already been detected) and /ScanHealth (a deeper scan, taking several minutes) [A-S21]. SFC only checks protected Windows system files and replaces damaged versions with cached copies; it cannot directly fix hardware faults, incompatible third-party applications, or every driver problem [A-S21]. The conditions: run from an administrator Command Prompt; do not close the window during an SFC scan until verification reaches 100% [A-S21]. SFC's detailed record is at %windir%\Logs\CBS\CBS.log [A-S21]. Remember: SFC and DISM repair Windows itself, not drivers — if a driver file (the .sys runtime copy outside the DriverStore) is damaged, SFC may repair it; if the DriverStore package itself is damaged, the driver has to be reinstalled. If DISM reports the image as "non-repairable", or SFC still has files it cannot repair after several runs, the system image layer is beyond in-place repair, and an in-place upgrade repair or a Windows reinstall has to be considered — that is Layer 6 material, and it should not be jumped to from Layer 4.

Layer 5: Safe Mode (isolation testing)

Safe Mode starts Windows with a limited set of files and drivers; third-party drivers, startup applications and most services do not load [A-S22]. How to enter: Settings, System, Recovery, Advanced startup, Restart now, Troubleshoot, Advanced options, Startup Settings, Restart, then press 4 (Safe Mode), 5 (Safe Mode with Networking), or 6 (Safe Mode with Command Prompt) [A-S22]. Or use msconfig, the Boot tab, and tick Safe boot (Minimal or Network) — but that setting is sticky: Windows will enter Safe Mode every time until the tick is removed [A-S22]. The diagnostic logic (the core of this section): if the problem disappears in Safe Mode, the cause is something that only loads on a normal boot — a driver, an application, or a service [A-S22]. If the problem persists in Safe Mode (for example the device still reports Code 10 or 43), the cause is more likely in a Windows core component, the firmware, or the hardware itself. Safe Mode itself repairs nothing; it is only an isolation environment [A-S22]. In practice, DDU and AMD Cleanup Utility run in Safe Mode precisely because they exploit the fact that "the target driver is not loaded, so its files are not locked" [A-S20].

Layer 6: BIOS and UEFI updates and firmware checks

Check the BIOS version (msinfo32 or a vendor tool) against the vendor support page's update notes: does the update mention fixing the device problem you have, does it require the ECP or ME firmware to be raised first, and does the applicable model match exactly [A-S27]. Lenovo's BIOS update package explicitly requires keyboard and mouse input devices (the Windows on-screen keyboard may not be suitable for a BIOS update) [A-S27]. Warning: a BIOS update must be done on mains power, must not be interrupted, and must never use a package for the wrong model; a failed update can leave the motherboard unable to boot, and the machine has to be sent in (motherboard chip-level repair from HK$880 — see the Chapter 17 pricing rules).

Layer 7: Cross-testing the hardware (the end of the road from soft to hard)

  • Change port, cable, or slot: move a USB device to another port, change the cable; change the cable for an external display; for a laptop's built-in device, check the ribbon cable (which needs the machine opened — send it in).
  • Another machine or another OS: does the same device fail the same way on another Windows computer, or on a Linux Live USB? If it fails in another OS too, a hardware fault is much more likely; if it fails only in Windows, the driver or OS layer is much more likely.
  • Minimum system and elimination: unplug non-essential external devices and disable suspect devices one by one, watching whether the error code moves.
  • Temperature and power observation: monitor GPU and CPU temperatures and fan speeds; when TDR keeps recurring and temperatures are high, fix the cooling first, not the driver [A-S24].
  • The stop point: if Layers 1 to 6 are done and Code 10 or 43 is still there, and cross-testing points at hardware, stop reinstalling drivers and move to the repair-or-replace decision in Chapter 19. Continuing to reinstall only burns time and write cycles (SSD write wear is small, but the time cost is real). Three complete clean installs with no effect is the stop point: move to hardware cross-testing, do not do a fourth.

13.1 DISM driver injection: offline driver maintenance (supplement)

DISM (Deployment Image Servicing and Management) can add, remove and list drivers on an offline (not booted) Windows image (.wim, .ffu, .vhd, or .vhdx) [B-S9]. Adding a driver to an offline image: Dism /Image:C:\test\offline /Add-Driver /Driver:C:\drivers\mydriver.inf; a whole folder can be added with /recurse. An added driver package goes into the image's Driver Store, and when the image boots, PnP matches it to the matching device [B-S9]. Only INF-style drivers are supported: Windows Installer (.msi) and other driver package types (such as .exe installers) are not supported [B-S8]. Only signed drivers are added by default: for testing, /ForceUnsigned can override the x64 requirement for digitally signed drivers; production deployment media should not use it [B-S8]. Removing a driver: Dism /Image:... /Remove-Driver /Driver:oem#.inf; listing drivers: /Get-Drivers and /Get-DriverInfo; exporting: /Export-Driver /Destination:..., and an exported driver can later be injected into another image [B-S8]. A driver added to an image is named Oem*.inf, guaranteeing a unique name [B-S9]. The boot.wim versus install.wim difference (a repair-practice point): if the installer cannot see the hard disk (for example a new platform's NVMe or RAID controller), the storage driver has to be injected into boot.wim (the image the installer sees), not only install.wim; otherwise the installer cannot see the disk before it has loaded the driver. The limit: DISM does not resolve dependencies automatically; if a package needs a prerequisite the image does not have, the command fails [B-S8]. The division of labour with PnPUtil: DISM maintains an image before it boots; PnPUtil maintains a system while it is running. A repair shop preloads drivers with DISM before reinstalling a system; an ordinary user repairs drivers with PnPUtil or Device Manager. The two tools should not be confused.

14. Advanced diagnostic tools and their mechanisms

14.1 Hidden devices and ghost (non-present) devices

Device Manager does not show three kinds of hidden device by default [B-S14]: first, devices whose devnode status bit DN_NO_SHOW_IN_DM is set; second, devices in a device setup class marked NoDisplayClass (for example printers and non-PnP drivers); third, devices that have been physically removed from the computer but whose registry entries were never deleted (also called non-present or phantom devices). From Windows 8 and Server 2012, the PnP manager no longer creates a device representation for non-PnP (legacy) devices, so there are no such devices to see [B-S14]. How to show them: Device Manager, View, Show hidden devices. Before Windows 8, showing non-present devices required setting the environment variable DEVMGR_SHOW_NONPRESENT_DEVICES=1 before opening Device Manager; setting it permanently went through System Properties, the Advanced tab [B-S14]. The Microsoft Support article gives the same method and warns: use it only for troubleshooting or development, so users do not accidentally uninstall a device that is not connected but still needed (for example a USB device or docking station that is not plugged in) [B-S15]. The real harm of ghost devices: residue entries from old USB or network devices can occupy resources or driver bindings, so a new device enumerates and matches the wrong driver; replacing a network card without first uninstalling the old one can leave the old card's IP and driver settings conflicting with the new card; the way to tell is a faded icon, meaning non-present — right-click, Properties, check the hardware ID, and uninstall only once it is confirmed to be the old device. Microsoft states plainly that "users should never need to see non-present devices, because non-present devices should not attract their attention and should not cause them any problem." [B-S14] In other words, seeing a ghost device does not mean there is a problem; only when it is connected to the symptom (for example two entries with the same name, one normal and one yellow-triangled) is it worth cleaning. Never "clear all hidden devices".

14.2 The SetupAPI log (setupapi.dev.log): the black box of the installation process

Location: %SystemRoot%\inf\setupapi.dev.log (usually C:\Windows\INF\setupapi.dev.log). Since Windows Vista, SetupAPI has recorded device installation information in this plain-text log file [B-S16]. The marking system: ! (one exclamation mark) means a warning; !!! (three exclamation marks) means a failure [B-S16]. The practical search: Select-String -Path "$env:windir\inf\setupapi.dev.log" -Pattern '!!!' finds every failure line quickly. The section structure: each device installation opens a section, and its heading states what triggered the installation (see the three headings in 12.4). Inside a section, the log records the device instance ID; each candidate driver package's rank and signature type (see Microsoft's "driver ranking information in the SetupAPI log") [B-S3]; the signature verification result (for example Verifying file against specific (valid) catalog failed! (0x800b0109)); and the final result (for example Device not started: Device has problem: 0x34: CM_PROB_UNSIGNED_DRIVER — 0x34 is decimal 52, that is, Code 52) [B-S16]. The testing trick: before testing a driver installation, rename the old log so the system produces a new log and the new installation's records are easy to find; but do not make renaming the log a routine production operation [B-S16]. Related logs: deployment troubleshooting also uses setupapi.offline.log (driver failures in the specialize phase) and setupapi.dev.log (driver failures in the oobe phase), both in %windir%\inf [B-S40]. setupapi.dev.log is the only official record of "which driver, which rank, which signature, which error code". Before "looking at the log when something breaks", remember: "do not delete the log and do not change anything in it" — the log is for reading, not a repair tool.

14.3 Event Viewer: three sources, never to be mixed up

SourceLocationKey eventsHow to read them
Microsoft-Windows-Kernel-PnPWindows Logs, SystemEvent 219: The driver \Driver\WudfRd failed to load for the device …When a UMDF device is plugged in, the framework service may not have started yet, so the first load fails; Windows retries; unless the event is recorded continuously, nothing needs to be done and it can be safely ignored; a successful driver load can be confirmed in System Information, and normal device operation in Device Manager [B-S23]. Do not treat a single 219 as a hardware fault
DisplayWindows Logs, SystemEvent 4101: "Display driver stopped responding and has recovered"The record of a successful TDR recovery (see Part 1, Chapter 8)
Microsoft-Windows-DeviceSetupManagerApplications and Services Logs, Microsoft, Windows, DeviceSetupManager, AdminEvent 200: cannot connect to the Windows Update service; 201: cannot connect to Windows Metadata and Internet Services (WMIS); 202: Network List Manager reports no internet connection; 131: Metadata staging failed (for example result=0x80072EFE); 122: access to a driver on Windows Update was blocked by policyEvents 200, 201 and 202 usually mean DeviceSetupManager tried to connect during boot or a scheduled task (Metadata Refresh) before the service was ready; if the device itself works normally, these warnings do not mean the driver is broken. Event 131 means the metadata service itself has a problem (for example a Microsoft metadata service fault), not a local driver problem. Do not treat DeviceSetupManager warnings as driver error codes. [B-S25]
Kernel-PowerWindows Logs, SystemEvent 41: the system restarted without a clean shutdownNot a driver error itself, but it often appears with a TDR or driver blue screen; it locates "when it crashed", not "why it crashed"
DriverFrameworks-UserModeWindows Logs, SystemEvent 10114: the UMDF reflector did not loadAppears in a pair with Kernel-PnP 219, explaining the cause of 219 (the framework had not started) [B-S23]
The discipline of reading Event Viewer: first, match the time — the event timestamp has to agree with the time the symptom happened; an event a few minutes away is not evidence. Second, match the device — the device instance ID in the event has to be the same as the faulty device in Device Manager. Third, look at frequency — a single event and a continuous event are two different things (the official guidance on 219 draws the line exactly at "is it continuous"). Fourth, do not Google every event one by one: many events are part of normal operation, and searching them one by one only creates panic.

14.4 WinDbg and !devnode in brief (written for readers who "know it exists, but will not use it")

What WinDbg is: Microsoft's Windows debugger, able to debug in user mode and kernel mode; the industry-standard tool for driver debugging. !devnode: shows information about one node in the device tree. Usage [B-S20]: !devnode 0 1 shows the whole device tree; !devnode 1 lists all device objects waiting to be removed; !devnode 2 lists all device objects waiting to be ejected; !devnode

[flags] [service name] shows a specified devnode, and adding a service name shows only devnodes driven by that service. DLL: Kdexts.dll. Related commands: !devobj shows the DEVICE_OBJECT structure in detail, including the device name, the current IRP, the pending IRP queue, and the upper device object [B-S21]; !devstack shows the device stack for the same device object in formatted form [B-S21]; !drvobj shows the DRIVER_OBJECT; !pnptriage dumps the problem devnodes and PnP worker threads in one go, quickly locating which thread is stuck in which driver's AddDevice; !analyze -v shows a detailed analysis of the most recent bug check (used after a Driver Verifier violation). WinDbg is not a tool for ordinary users; this section is for repair staff and advanced readers to know the tool exists, not to tell readers to install WinDbg themselves. If an article teaches readers to use WinDbg, it must also say that kernel debugging setup, symbol files, and another machine or a virtual environment are needed — it is not "download a program and click twice". The diagnostic value of !devnode (at the mechanism level): it can show a devnode's State and Problem code directly, for example Problem = CM_PROB_FAILED_INSTALL, and it can show which PnP thread is stuck in which driver's AddDevice. That is a level Device Manager's GUI cannot show.

14.5 Driver Verifier: the principle, the use, and the risk warning (must-read)

What it is: Driver Verifier (Verifier.exe, at %WinDir%\system32) is a built-in Windows testing tool that monitors kernel-mode drivers and graphics drivers in real time, detecting illegal function calls and behaviour that could damage the system [B-S12]. The principle: it replaces the default OS subroutines with specially built ones, and actively puts pressure on the driver: special pool allocation, forced IRQL checking, pool tracking, I/O verification, deadlock detection, DMA verification, security checks, DDI compliance checks, and more. A driver under verification runs in a resource-constrained environment, so a bug that is normally rare shows itself at once [B-S12]. The consequence of a violation: as soon as a violation is detected, Driver Verifier produces a bug check that stops the computer, giving the most information possible for debugging. The typical bug check is Bug Check 0xC4: DRIVER_VERIFIER_DETECTED_VIOLATION; others include 0xC1 (special pool detected memory corruption), 0xC6 (a driver modified a freed pool), 0xC9 (an I/O manager violation), 0xD6, and 0xE6 (DMA violations) [B-S12]. Microsoft's official warnings (quoted verbatim): "Running Driver Verifier could cause the computer to crash." "You should only run this utility on computers used for testing and debugging." "You must be a member of the Administrators group on the computer to use Driver Verifier." [B-S12][B-S13] What must not be done: do not tell ordinary users to "try switching on Driver Verifier" — it is designed to deliberately trigger blue screens, and on a production machine it can badly degrade performance or make the machine unbootable. Do not verify all drivers at once — Microsoft states explicitly that verifying all drivers can exhaust special pool resources and seriously affect system performance [B-S12]. Do not switch it on without a backup and a recovery route — create a system restore point first, and have the Safe Mode or WinRE entry method ready. The correct way to switch it on and off (for repair staff only): on: verifier /standard /driver (targeting one suspect driver), or open Driver Verifier Manager (verifier), create standard settings, pick the driver list, finish, and restart [B-S12]. Off: verifier /reset, then restart; or Driver Verifier Manager, delete the existing settings, finish, and restart [B-S12]. If every boot blue-screens after switching it on, enter Safe Mode and run verifier /reset. To check status: verifier /query, verifier /querysettings; in the kernel debugger, !verifier, !deadlock, !analyze -v [B-S12]. When it is appropriate: the ordinary causes (reinstalling the driver, changing the version, checking the hardware) have already been excluded, the machine still blue-screens intermittently, and a particular third-party kernel driver is suspected; or when developing or testing a new driver. It is not a first-line tool; it is a last resort.

14.6 PnPUtil quick reference

``cmd
:: List every device with a problem
pnputil /enum-devices /problem

:: See one device's drivers and stack
pnputil /enum-devices /instanceid /drivers /stack

:: List every third-party driver in the Driver Store
pnputil /enum-drivers

:: Add and install a driver (note: it will not apply if its rank is not high enough)
pnputil /add-driver C:\drivers\xxx.inf /install

:: Delete a driver package and uninstall it from the device
pnputil /delete-driver oem#.inf /uninstall

:: Export all drivers as a backup
pnputil /export-driver * C:\driver-backup

:: Scan for hardware changes
pnputil /scan-devices

:: Disable / enable / restart a device
pnputil /disable-device
pnputil /enable-device
pnputil /restart-device

:: Switch off Driver Verifier (use in Safe Mode if it blue-screens in a loop)
verifier /reset

:: Force a complete shutdown (bypasses Fast Startup once)
shutdown /s /t 0
`

PnPUtil (PnPUtil.exe) has been built into %windir%\system32 since Windows Vista and must be run as an administrator [B-S6]. pnputil /delete-driver [/uninstall] [/force] [/reboot]: /uninstall uninstalls it from any device using it; /force deletes it even while a device is using it [B-S6]. The danger: /force on a driver in use leaves the device driverless at once, and at the next enumeration the device may become Code 28 (driver not installed). Never use /force without knowing which device a given oem#.inf belongs to. pnputil /enum-devices [/connected | /disconnected] [/problem []] [/drivers] [/stack] [/deviceids] [/services]: pnputil /enum-devices /problem finds every yellow-triangled device in one line; /drivers shows the matching and installed drivers; /stack shows the actual device stack [B-S6]. That is a faster whole-machine scan than the Device Manager GUI. pnputil /disable-device, /enable-device, /restart-device and /remove-device are available from Windows 10 2004; /remove-device can take /subtree to remove a whole device subtree [B-S6]. pnputil /enum-devicetree is available from Windows 11 23H2 [B-S6]. The old syntax (still supported, but Microsoft advises the new syntax): -a is /add-driver, -d is /delete-driver, -e is /enum-drivers [B-S6].

15. The firmware layer: BIOS and UEFI, EC, Intel ME, device firmware

15.1 A four-layer model: do not talk about "firmware" as one lump

LayerWhat it isHow it is updatedWhat failure looks like
BIOS/UEFIMotherboard firmware: boot, hardware initialisation, resource allocation, Secure BootA vendor BIOS update package (a Windows tool or the flash tool inside the BIOS)Code 12 (insufficient resource allocation) [B-S1], Code 29 (firmware provided no required resources) [B-S1], device invisible
EC firmware (Embedded Controller Firmware, ECFW)Embedded controller firmware: power button, fans, keyboard, battery charging, sleep and wakeUsually bundled in the BIOS update package (Lenovo's BIOS package explicitly lists the UEFI BIOS version and the ECP version) [B-S30]Fans not spinning, failure to wake from sleep, battery not recognised, keyboard or touchpad failing intermittently — symptoms easily misdiagnosed as driver problems
Intel ME firmwareManagement Engine firmware: an independent subsystem running inside the chipA vendor ME firmware update package (independent of the MEI driver); with prerequisites (BIOS and EC versions) [B-S29]MEI driver Code 10, system instability, AMT and remote management features failing
Device firmware (for example Thunderbolt controllers, SSDs, fingerprint sensors, cameras)The device's own firmwareA vendor firmware update tool (for example the Thunderbolt FW Update Tool, ControlVault firmware)The device shows Code 10 or 43 in Device Manager, or the firmware update tool says "device not found"

15.2 How a firmware failure disguises itself as a driver error

A BIOS resource allocation failure becomes Code 12 or 29: the BIOS allocated no interrupt to the USB controller, so Windows says the device cannot find enough free resources (Code 12); the device firmware provided no required resources, so Windows disables the device (Code 29). The suggested fix for both codes is "enable the device in the BIOS, or read the hardware documentation" — not "update the driver" [B-S1]. ME firmware too old, so the MEI driver refuses to load: driver and firmware have a version dependency; if the firmware is not updated, the driver reports Code 10 no matter how often it is installed. Lenovo's documentation explicitly lists "the BIOS must be at a certain version or above, and the ECFW must be at a certain version or above" before it is compatible [B-S29]. A Thunderbolt firmware update failure becomes Code 43 or a disappearing device: see 15.3. An EC firmware problem becomes a power management abnormality: the EC controls sleep and wake; if the EC firmware has a bug, the driver fails to load after the device wakes, showing Code 10 — but the root is the EC. One branching question: "Did this problem appear or disappear after a BIOS update?" If the answer is yes, suspect the firmware layer first, not the driver layer.

15.3 Thunderbolt and USB-C: a set of three — software, firmware, driver

Thunderbolt has three parts, and all three are needed: first, the Thunderbolt software (SW): the user-mode control centre; second, the Thunderbolt driver: the kernel driver; third, the Thunderbolt firmware (FW): the controller's own firmware. The installation order (Lenovo's official guidance): install the Thunderbolt SW first, then the Thunderbolt FW; AC power must be connected before installing the FW; it must be run with administrator rights. [B-S41] Typical firmware update failure return codes (listed in Lenovo's documentation): 0x225 Driver communication error, 0x226 Error during image update, 0x227 Universal driver is missing, 0x228 The image provided is not signed (the image was rejected), 0x229 A timeout has expired while FW update was performed; return code 100 means "no AC detected or battery below 10%", 3000 means "PM driver not installed", and 4000 means "Thunderbolt driver not installed" [B-S41]. HP's known cause: when updating Intel Thunderbolt Retimer firmware, if any device is plugged into the laptop (other than the power adapter), the update fails with CreateRetimerDevInstance or read Retimer NVM version failed. The fix is to unplug every external device and update again [B-S31]. Intel's position: Intel no longer supports OEM Thunderbolt directly; driver and firmware updates have to come from the system vendor; Intel supports Thunderbolt only on Intel NUC products [B-S32]. The "USB4 may be limited" message: when the Thunderbolt controller fails, Windows may show "USB4 may be limited", and then the controller hangs until a restart — that is a driver or firmware conflict, not a broken USB device [B-S32]. A Thunderbolt problem has to be checked three ways at once: the SW version, the driver version, and the FW version. Updating only the driver while the firmware is too old, or only the firmware while the driver is too old, will both fail.

15.4 BIOS and UEFI update safety discipline

Use only a BIOS for the exact model: a BIOS file for the wrong model can fail midway and leave the motherboard unable to boot. Before updating: connect AC power, make sure the battery has enough charge (Dell requires at least 10%), pause BitLocker and keep the recovery key safe, and close all applications. During the update: never cut the power, never press the power button, never restart. Lenovo's documentation warns that if the computer is switched off or suspended during an update, the system motherboard may need replacing [B-S30]. Do not update the BIOS just because "there is a newer one": if the machine works normally and the release notes mention nothing about the problem you have, there is no need to update. Note: a BIOS update must never be written as "a routine step for fixing driver problems". It is surgery with a risk of bricking the machine, and it should only be done when the release notes explicitly mention a relevant fix, or after the driver layer has been excluded.

16. The power and wake layer: Fast Startup, sleep, Modern Standby

16.1 Fast Startup: "shut down" is not a real shutdown

When Fast Startup is on and the user clicks "Shut down", Windows logs out all user sessions and then hibernates the kernel session, together with the loaded device drivers, into hiberfil.sys, instead of closing it. On boot, the kernel session is restored from the hibernation file instead of being reloaded [B-S24]. "Restart" is not affected by Fast Startup: a restart runs a complete boot cycle and does not use the hibernation performance improvement; the kernel session ends completely and is rebuilt [B-S24]. The practical consequences: a broken driver state can be restored over and over again through Fast Startup "shut down, then power on", making the problem look "unfixable forever" — while a "Restart" fixes it, because only a restart truly rebuilds the kernel. When a driver installer asks for a "Restart", it is not being fussy; if the user substitutes "shut down and power on", the driver may not load correctly. To force one complete shutdown: shutdown /s /t 0 (without the /hybrid parameter) [B-S24]. Microsoft's position: "Disabling Fast Startup is not recommended." [B-S24] Disabling Fast Startup is a diagnostic method (to tell whether the problem is connected to hibernation restore), not a permanent fix; after testing, re-enable it, or fix the underlying driver or firmware problem.

16.2 Code 10 after a sleep or hibernate wake: four possibilities

First, a bug in the driver's power handling: the driver does not correctly reinitialise the hardware on the D3 (sleep) to D0 (working) transition. Second, a problem in the firmware (EC or BIOS) wake sequence: the hardware has not powered up yet when the driver already tries to access it. Third, USB selective suspend: a USB device goes to sleep and does not know how to wake. Fourth, Modern Standby (S0 Low Power Idle): newer laptops use S0 standby instead of traditional S3 sleep; during standby, drivers have to maintain low-power connections, and any one driver that does not cooperate makes the wake fail. Related blue screen codes include 0x9F DRIVER_POWER_STATE_FAILURE (a driver in an inconsistent or invalid power state) and 0x1EB DAM_WATCHDOG_TIMEOUT (on resuming from Modern Standby, the Desktop Activity Moderator could not unfreeze the user-session processes in time).

16.3 The diagnostic matrix: cold boot versus warm restart versus shut down and power on

OperationIs power fully cut?Kernel and driver stateWhat it tests
RestartNoCompletely rebuilt"Can a new kernel load the driver correctly?"
Shut down (Fast Startup on), then power onNo (standby power still on)Restored from hiberfil.sys"The hibernation restore path"
Shut down (Fast Startup off), then power onPower off, but standby power still on (unless the power is unplugged)Rebuilt"A clean boot"
Full cold boot (shut down, unplug power and battery, wait 30 seconds, reconnect and power on)YesRebuilt, plus a complete hardware reset"Can a hardware state reset solve the problem?"
If the problem disappears after a "Restart" but comes back after "shut down and power on", the culprit is Fast Startup's hibernation restore; if the problem only disappears after a "full power-off" but comes back after a "Restart", the culprit may be hardware state (for example link training, or firmware enumeration) rather than the kernel driver. This four-cell matrix is the most useful free diagnostic tool a repair technician has.

17. Hong Kong conditions

17.1 Damp causing contact oxidation, misread as a driver problem

The mechanism (first-party and second-hand material kept separate): in a high-humidity environment, moisture reacts with metal parts and causes corrosion, the insulation of electronic sockets falls, and conductivity rises; the higher the ambient humidity, the greater the effect on contact life [A-S26]. Another second-hand source notes that moisture can react with a metal surface to form an oxide layer, which acts as an insulator, raises the resistance between contacts, and causes poor contact [A-S26]; moisture can also accelerate the oxidation of metal contacts and connections, worsening conductivity, and can trigger electrochemical migration, a common cause of climate-related failure [A-S26]. The Hong Kong reality: the Hong Kong Observatory's 1991–2020 climate normals give an annual mean relative humidity of 78%; March 82%, April 83%, May 83%, June 82%, July 81%, August 81%; the mean humidity at 2 a.m. is higher still (82% for the year, 87% in April and May) [B-S33]. A laptop that spends a long time at this humidity and keeps moving between hot and cold (an air-conditioned room and the outdoors) can have its surface temperature fall below the dew point and condense water directly [A-S26].

The misdiagnosis chain: contact oxidation raises contact resistance, the device stops answering intermittently, the driver times out during initialisation or I/O, DriverEntry fails (Code 37), or the driver reports a device fault (Code 43), or the device disappears intermittently (Code 45). The user sees "a driver problem", reinstalls the driver, and it "seems better" (because the reinstall involves a restart and a re-enumeration, which briefly improves the contact), and a few days later it comes back, so they reinstall again — an endless loop. The clues: the fault tracks the weather, the air conditioning, or where the machine is kept (worse in the rainy season or the damp spring, appearing after moving from an air-conditioned room to the street), shaking or lightly pressing the body can trigger or clear it, the same device works fine in another machine, and reinstalling the driver only improves it briefly. The correct handling is at the physical layer: with the power off and the machine unplugged, clean the contacts (the RAM, SSD and Wi-Fi card gold fingers, and the ribbon cable connectors), check for green or white oxide, store the machine dry (a dry cabinet or a dehumidifier), and avoid sudden hot-to-cold changes. The text has to say it plainly: oxidation is a physical-layer problem, and no driver can fix it. What can be said (there is a source): Hong Kong is in a high-humidity environment for a long time, and March to May is the dampest. What cannot be said (there is no source): "damp causes XX% of driver failures" or "humidity makes this or that driver fail". There is no direct causal link between humidity and driver errors — humidity affects the hardware layer (contact oxidation, short circuits, corrosion), and a hardware-layer fault shows up as a driver error [B-S33].

17.2 Commuting vibration and the sleep-wake cycle

A laptop spends every day in a backpack on the MTR or a bus, being shaken, having its lid opened and closed, and its charging cable plugged and unplugged. The mechanical effects of vibration: ribbon cable connectors work slightly loose (the screen, keyboard and Wi-Fi antenna ribbons), an M.2 SSD or RAM module shifts slightly, and fan bearings wear faster. The symptoms overlap with driver problems: Wi-Fi with intermittent Code 10 or 43, a screen that flickers intermittently (easily misread as a display driver TDR), and individual keyboard keys failing (easily misread as a keyboard driver). How to tell: the fault tracks movement or lid opening, pressing a particular spot can reproduce it, and the machine works normally sitting still on a desk. Hong Kong users carry laptops on the MTR and buses all day: vibration can loosen an M.2 Wi-Fi card, a ribbon cable, or a USB-C socket, showing up as intermittent Code 45 or Code 10. The commuting pattern — frequent lid-close sleep, lid-open wake, and power plug and unplug — is exactly the power-state transition scenario from Chapter 16 where things go wrong most easily. For example, a laptop that worked fine at home in the morning and has no Wi-Fi when the lid is opened on the way to work may have its root in the driver's wake handling, not in "the Wi-Fi card burnt out". User habits: wait until the system has fully entered sleep before closing the lid and putting the machine in a bag; do one full restart before a long commute; and have the M.2 card screws checked for looseness regularly (a repair-staff job).

17.3 Local parts and price reality (only the confirmed prices)

Pricing rules: battery from HK$580, screen from HK$1,280, motherboard chip-level repair from HK$880, keyboard from HK$480; everything else is "quoted in writing after diagnosis". For example: if the diagnosis points at an ageing battery causing unstable power that triggers intermittent GPU or Wi-Fi Code 43, write "battery replacement from HK$580"; if it points at a screen ribbon or panel, write "screen from HK$1,280"; if it points at the motherboard layer (for example a PCIe controller, a power module, or EC firmware), write "motherboard chip-level repair from HK$880"; if it points at keyboard hardware, write "keyboard from HK$480". Never estimate the price of RAM, SSD, a Wi-Fi card, a fan, a cooling module, speakers, a camera, a whole motherboard replacement, or any other item — always write "quoted in writing after diagnosis". Never write any unverified warranty period, certification, or rating. Parallel-import (grey-market) machines: the driver source needs extra care — a grey-market model's model number may differ from the local version, and entering the wrong model on the vendor's support page downloads the wrong driver. Before a repair, the exact model must be checked against the label on the bottom of the machine or msinfo32; never guess from "it looks the same". Refurbished or second-hand laptops: the previous owner may have installed a different vendor's display driver, or cleaned with DDU; on taking over, first run pnputil /enum-drivers to take stock, and never assume the DriverStore is clean. A repair shop's usual practice ("common industry practice", not an official standard): first do the software-layer investigation (reinstall the OEM driver, check the Windows Update record, read the setupapi log), and only suspect hardware after excluding software; a hardware suspicion has to be confirmed by cross-testing (swapping cards or slots, or an external test), and a single Code 43 must never be used to declare hardware dead. Prices are on the pricing page; if in doubt, start with a free diagnostic. The shop is at Room 1209, Daly Plaza, Shek Mun, Shatin; telephone +852 2186 8010; WhatsApp +852 6558 6806; opening hours 12:00–19:00.

18. Common misdiagnoses and traps

1. "Code 10 means the hardware is broken": wrong. Code 10 is a start failure, and it can be any of four layers — driver, firmware, power, or hardware [B-S1][B-S2].
2. "Code 43 means the graphics card burnt out": wrong. Code 43 is a problem reported by a driver, and it is often a driver version problem; change the driver version and check power and cooling before declaring hardware dead [B-S1].
3. "The newest driver is always the best": wrong. Under the ranking mechanism, the best match is not necessarily the newest; Windows Update also states plainly that the best match is not necessarily the newest [B-S5].
4. "An old driver date means it is out of date": wrong. The date is descriptive information set by the provider; Microsoft drivers are deliberately backdated to 2006 [B-S17].
5. "Device Manager saying 'the best driver is already installed' means there is no newer driver": wrong. Device Manager's automatic search only looks at the local DriverStore and the best match on Windows Update; it will not tell you the vendor's official site has a newer OEM package.
6. "Uninstalling the device means deleting the driver": wrong. Without ticking "delete the driver", it only removes the binding; the next scan binds the same package again [B-S6].
7. "A greyed-out Roll Back button means Windows is broken": wrong. It only means no old package is available to restore (see 12.5).
8. "Update all the drivers at once": wrong. Change one, test once; otherwise nobody knows which change broke it.
9. "Use a third-party driver updater to update everything in one click": high risk. Third-party software may install a driver for the wrong hardware ID, or install a generic driver that overwrites the OEM customisation; Microsoft and the vendors both advise using official sources.
10. "Raise TdrDelay to fix TDR": wrong. Microsoft states plainly that the TDR registry keys are for driver development testing only, and ordinary users should not change them [B-S11].
11. "Switch on Driver Verifier and see": dangerous. It is a testing tool designed to trigger blue screens, and it belongs on test machines only [B-S12].
12. "Panic when you see Kernel-PnP 219": wrong. A single 219 is a UMDF timing issue and can be safely ignored; the question is whether it repeats continuously [B-S23].
13. "DeviceSetupManager 200, 201 or 202 means the driver is broken": wrong. These are connection and metadata warnings, not driver errors [B-S25].
14. "'Device requires further installation' means the driver is not installed properly": wrong. Read the time order; if "Device installed" is below it, it is normal [B-S25].
15. "Clear all the hidden devices": wrong. A ghost device on its own should not attract attention; only clean the ones connected to the symptom [B-S14].
16. "Delete FileRepository folders by hand to free space": wrong. It breaks the staging records and creates Code 39; the correct route is
pnputil /delete-driver [B-S6].
17. "Turn off Secure Boot to fix Code 52": wrong. Secure Boot does not verify driver signatures; Code 52 needs the signature chain checked [B-S38].
18. "Shut down and power on is the same as Restart": wrong. Under Fast Startup, shut down is a hibernation restore; only Restart is a complete rebuild [B-S24].
19. "A BIOS update is a routine step for fixing drivers": wrong. A BIOS update carries a risk of bricking the machine; do it only when the release notes mention a relevant fix (see 15.4).
20. "The yellow triangle disappearing means it is fixed": wrong. It only means the device starts now; the actual function has to be tested (internet, sound, printing, fingerprint sign-in) before it counts as fixed.
21. "Use DDU for every upgrade": overkill. A routine upgrade needs only the vendor's clean install; DDU is for switching vendors, repeated failures, or persistent TDR (see 13.3).
22. "Install the legacy HDA driver from Realtek's website on a UAD system": wrong. It causes installation failure; a modern laptop needs the vendor-customised UAD package (see 11.3).

18.1 The risk of third-party "driver updater" tools (its own section)

Several second-hand sources warn consistently: third-party driver update programs are mostly scareware, using flashing red icons and alarming warnings to push users into paid subscriptions, while Windows Update already provides the same service for free [A-S23]; they often pull driver files from unverified crowd-sourced databases rather than OEM servers, carrying a serious risk of installing incompatible or unstable software [A-S23]; the free versions often bundle adware or malware, collect hardware inventories and usage data, or install extra programs through pre-ticked boxes [A-S23]. XDA's hands-on test also notes that a third-party driver updater once changed registry entries and broke a previously normal computer [A-S23]. The Microsoft Q&A community reply on WinZip Driver Updater is explicit: no driver updater tool should be used — they are notorious for breaking Windows 10; drivers should be installed automatically by Windows Update, or obtained from the computer manufacturer's support page [A-S31]. Distinguish "vendor official tools" (Intel Driver & Support Assistant, NVIDIA App, AMD Software, Lenovo Vantage and System Update) from "third-party generic updaters" — the first come from the hardware vendor and only push that vendor's own hardware drivers; the second are generic middlemen with unknown sources. There are only two safe routes: Windows Update (Optional updates, Driver updates) and the computer or hardware manufacturer's official support page [A-S23][A-S31]. Microsoft Support also advises avoiding downloading drivers from any website other than the manufacturer's official website [A-S30].

18.2 The security risk of downloading drivers from unknown websites

The mechanism: a driver runs in kernel mode with the highest privileges; a malicious or tampered .sys can bypass most antivirus software, install a rootkit, and steal data. The signing mechanism (Part 1, Chapter 3) exists precisely to prevent this, but attackers can sign with stolen certificates, or trick users into turning off signature enforcement. The rule: list only official download routes (the Microsoft Update Catalog and the Intel, NVIDIA, AMD, Lenovo, HP and Dell official support pages); never list, link to, or recommend aggregator sites with names like "driver-download" or "drivers-free". After downloading, check three things: that the file came from an official domain, that the installer has a valid digital signature (right-click, Properties, Digital Signatures tab), and that the version number matches the one stated on the support page.

18.3 Disabling a device by mistake (manufacturing your own Code 22), and other traps in brief

Users disable the integrated or discrete GPU or Wi-Fi in Device Manager to "save power" or "resolve a conflict", and the switching chain breaks, or the device reports Code 22 (device disabled) directly [A-S1]. Worse, they forget they disabled it, and months later assume the hardware is dead. Remember: disabling is a diagnostic tool, not a repair — record it when you disable something, and restore it; on a dual-GPU machine, never disable one GPU as a "solution". Other traps in brief: raising TdrDelay as a fix: stretching the timeout only gives the GPU more time to finish its work, hiding the real cause (overheating, a driver bug, or a hardware fault); Microsoft positions it as a testing and debugging tool [A-S24]. Turning off Secure Boot or signature enforcement as a fix: removing a defence is not a repair (see Part 1, Chapter 3) [A-S32]. "Update the BIOS because there is a new one": a BIOS update carries a risk of bricking the machine; update only when the update notes mention a matching fix [A-S27]. "The newest driver is always the best": under ranking logic, the newest is not necessarily the best match (see Part 1, Chapter 6); a pairing the OEM tested is often more stable than the chip vendor's newest version [A-S15]. Concluding from a single event: an isolated 4101, an isolated Code 43, or an isolated setupapi warning is not a diagnosis; time alignment and reproducibility are required [A-S24]. The danger of registry cleaning tools: see Part 1, Chapter 5 — Enum, Services and Class reference each other, and a third-party "registry clean" can cut the service keys of dozens of devices at once, creating Code 19, 40 and 32. Microsoft's official advice for Code 19 is to reinstall the driver or restore the system, not to scan the registry [A-S1]. UpperFilters and LowerFilters should only be handled by hand after a backup, for one ClassGUID, removing only the offending filter name [A-S19]. Reinstalling forever, treating a hardware fault as a driver problem: the same Code 10 or 43 surviving three complete clean installs (vendor clean install, then DDU, then reinstall) is the stop point — move to hardware cross-testing (Chapter 13, Layer 7), not a fourth attempt.

19. The repair, replace or upgrade decision framework

19.1 The decision tree

`
A device reports an error code
|- Fixed at Layers 1-3 (restart / roll back / clean install / SFC-DISM)
| -> Keep using it, observe for a week
|- Fixed at Layers 4-6 (Safe Mode isolation / BIOS update)
| -> Keep using it, record the trigger conditions
|- Three clean installs fail + cross-testing points at hardware
| |- Hardware is a replaceable module (battery / keyboard / screen / RAM / SSD / Wi-Fi card)
| | -> Compare quotes: battery from HK$580 / keyboard from HK$480 / screen from HK$1,280;
| | everything else quoted in writing after diagnosis; if the repair cost is
| | reasonable and the machine is still young -> repair
| |- Hardware is at the motherboard layer (power / controller / BGA / EC)
| | -> Motherboard chip-level repair from HK$880; a written quote must confirm the
| | scope (chip-level repair versus whole-board replacement differ greatly in price)
| |- Hardware is a high-price soldered component (GPU core / VRAM)
| -> Move to the replacement assessment in 19.3
|- Several unrelated devices report different codes at once + SFC/DISM cannot repair it
-> Suspect a shared cause in the system image, disk, or motherboard; assess an
in-place repair, a Windows reinstall, or a replacement machine
`

19.2 When the driver layer is worth repairing

The fault has a clear timeline (broke right after an update), and a rollback or clean install reproducibly fixes it. The error code belongs to the driver or registry layer (Code 28, 31, 39, 19, 32, or 37), and setupapi.dev.log points at a file or service problem rather than hardware not answering [A-S1][A-S11]. The machine is still young, the other hardware is healthy, and the battery and cooling are normal. The repair cost is mostly time (one to two hours of diagnosis and installation), with no parts cost.

19.3 When hardware has to be replaced, and when the whole machine should be upgraded

Hardware has to be replaced when: three complete clean installs fail, and cross-testing (another machine, another OS, changing ports and cables) points at hardware. The error code belongs to the hardware or firmware layer (Code 43 persisting with the vendor's current driver, Code 10 with a vendor FailReasonString pointing at hardware, Code 45 with a loose ribbon cable, or Code 12 or 35 pointing at firmware when the BIOS is already the newest). There are physical signs: overheating, unusual noise, a burnt smell, visible oxidation or burn marks, or a history of impact or water. The part to replace is a replaceable module with a confirmed price (battery, keyboard, or screen — see Chapter 17), and the repair cost is reasonable.

The whole machine should be upgraded when any of the following combinations appears, and the reader should seriously consider replacement rather than another repair: a motherboard-layer fault (chip-level repair from HK$880 is only a starting point, and a whole-board replacement has to be quoted in writing after diagnosis) plus an old machine plus an expired warranty. A soldered GPU core or VRAM fault (the repair involves BGA rework, the cost is high, the recurrence risk is high, and a written quote is needed). Several subsystems ageing at once (battery, cooling, keyboard and screen failing one after another) — the sum of repairing them one by one can approach the cost of a replacement machine. The OS is out of support (Windows 10 support ended on 14 October 2025; a machine not enrolled in ESU no longer receives free updates [B-S42]) and the hardware does not support Windows 11 — continuing to repair the driver layer only postpones the problem. Or the machine can no longer meet the current workload after repair (for example new software needs a new driver, and the vendor has stopped providing drivers for that model). Avoid absolutes: a replacement decision has to rest on the written quote, the machine's age, and its use — never on a single sentence such as "an old machine is not worth repairing" instead of a diagnosis.

19.4 Stop points for repair versus replacement

SituationAdvice
One driver version is faulty, and rolling back or changing version fixes it at onceRepair (software): lock in the known-good version and block Windows Update overwriting it (see 12.3)
Several device classes fail at once (for example Wi-Fi, Bluetooth and USB all reporting Code 10)Suspect the chipset, BIOS, EC, or motherboard layer; do not reinstall each device's driver one by one — work top-down
The same device reports Code 43 on different driver versions and different operating systems (for example a Live USB)Suspect hardware; confirm with cross-testing
A driver problem plus physical damage to the body (dropped, water, a swollen battery)Check the hardware first; do not waste time on the driver layer
The machine has no vendor driver support for a new Windows version (for example the vendor says it does not support Windows 11)Consider staying on a supported Windows version, or upgrading the hardware; do not force-install an unsupported driver
The repair cost is close to the replacement costCompare against a written quote first, then against replacement; do not tell the reader to replace the machine before a quote exists

19.5 Upgrade decisions: when a driver upgrade is worth it, and when it is not

Worth upgrading: there is a clear symptom (a yellow triangle, missing features, a blue screen), the vendor's release notes mention fixing the problem you have, or there is a security fix. Not worth upgrading: the machine works normally, the only reason is "I want the newest", the release notes mention no relevant fix, or you are running an OEM customised driver and the new version is generic. Upgrade discipline: upgrade one at a time; record the old version first; test after upgrading; keep the old installer; and if the new version breaks something, know how to go back to the old one.

19.6 What to prepare before sending the machine in

The device name, hardware ID, problem code, and driver version and date (a screenshot or a written note); when the symptom started and what changed most recently (what was updated, and on which day); the steps already tried and their results (so the technician does not repeat what you already did); the relevant Event Viewer events (exported as a .evtx file or a screenshot); a copy of the relevant setupapi.dev.log section (advanced); and confirmation that important data has been backed up. If in doubt, start with a free diagnostic; prices are on the pricing page.

20. Frequently asked questions

Q1: What is the difference between Code 10 and Code 43? Which should I try first?

A1: Code 10 is "the device cannot start" — the driver tried to start the device and failed, and the hardware key may hold a vendor-defined FailReasonString, so the whole sentence has to be copied down [A-S1][B-S2]. Code 43 is "a driver told the system the device has a fault" — the driver raised its hand to the OS, and Windows obeyed and disabled the device [A-S1]. One sentence separates them: Code 10 is "it will not get up no matter how often you call"; Code 43 is "it got up, then said it felt unwell" [B-S1]. The first step for both is the same: restart, roll the driver back, check the FailReasonString and setupapi.dev.log — do not reinstall Windows before diagnosing. If in doubt, start with a free diagnostic.

Q2: I have reinstalled the driver three times and the yellow triangle is still there. Do I need to reinstall Windows?

A2: No. Three complete clean installs with no effect is the stop point: move to hardware cross-testing (another machine or OS, changing ports and cables, Safe Mode), not a fourth reinstall and not an immediate Windows reinstall [A-S20]. Reinstalling Windows only resets system files and the installation state; it cannot repair firmware, oxidised contacts, power, or cooling. If cross-testing points at hardware, follow the Chapter 19 decision: replaceable modules (battery from HK$580, keyboard from HK$480, screen from HK$1,280) can be repaired, and the motherboard layer (chip-level repair from HK$880) needs a written quote before deciding. Prices are on the pricing page.

Q3: Windows Update keeps changing my driver, and things break after it does. How do I stop it?

A3: First use Device Manager's Roll Back Driver to return to the old version, then block it with the Chapter 12 methods: the Pro edition can use the Group Policy "Do not include drivers with Windows Updates"; the Home edition can use the registry value ExcludeWUDriversInQualityUpdate = 1; and one specific update can be hidden with wushowhide.diagcab [A-S30][B-S36]. The limits have to be stated: these methods do not block OS-built-in drivers or dynamic installation during a feature update, and no consumer switch can guarantee that no driver will ever be installed. If you roll back without blocking, Windows Update will very likely push the same version again.

Q4: A third-party driver updater says I have a dozen out-of-date drivers. Should I update them all in one click?

A4: No. Third-party driver update programs are mostly scareware, using alarming warnings to push users into paid subscriptions, while Windows Update already provides the same service for free [A-S23]; they often pull driver files from unverified crowd-sourced databases, carrying a serious risk of installing incompatible or unstable software [A-S23]. The Microsoft Q&A community states plainly that no driver updater tool should be used, and that drivers should be installed automatically by Windows Update or obtained from the computer manufacturer's support page [A-S31]. There are only two safe routes: Windows Update and the vendor's official support page. Update only the one driver that has a problem, one at a time — never all of them at once.

Q5: After the laptop wakes from sleep, the Wi-Fi is gone and shows Code 10. A restart fixes it. Is the Wi-Fi card broken?

A5: Not necessarily. Code 10 after a sleep or hibernate wake has four possibilities: a bug in the driver's power handling, a problem in the firmware (EC or BIOS) wake sequence, USB selective suspend, or a Modern Standby driver that does not cooperate (see Chapter 16) [B-S27][B-S24]. The key test is the Chapter 16 four-cell matrix: if a Restart makes it disappear but "shut down and power on" brings it back, the culprit is Fast Startup's hibernation restore; if only a full power-off makes it disappear, the culprit may be hardware state. Intel's suggested investigation includes a cold reboot (a full power-off restart), not an ordinary restart [B-S27]. If the problem only ever appears after a wake and never on a cold boot, suspect the power and wake layer first — do not replace the card at once.

Q6: The graphics card keeps blacking out for a moment, and Event Viewer has Event 4101. Do I need a new graphics card?

A6: Not necessarily. Event 4101 is the record of a successful TDR recovery; it only proves the GPU did not respond within 2 seconds and Windows reset it once. A driver bug, a power problem, overheating, or a badly behaved application can all trigger it [A-S24][B-S10]. Look at the frequency, the time distribution, and the trigger context, and check whether WHEA-Logger appears with it (if it does, a hardware-layer problem may be involved and the GPU driver is only a bystander) [A-S24]. Never raise TdrDelay as a fix — Microsoft states plainly that the TDR registry keys are for driver development testing only, and ordinary users should not change them [B-S11]. Follow the Chapter 13 layered exclusion first: roll the driver back, check temperatures and power, and do a clean install of the OEM driver; only suspect hardware after three failures. If in doubt, start with a free diagnostic; prices are on the pricing page.

Closing words

A yellow exclamation mark in Device Manager is not a diagnosis; it is the address of a cry for help. Code 10 says the start gate failed, Code 43 says the driver raised its hand, Code 28 says the matching gate found no driver, Code 19 says the registry gate is damaged, and Code 52 says the signature gate refused — but which layer really failed can only be read from the code, the timeline, and the logs together. Reinstalling a driver is a tool, not an answer; three failures is the stop point, not a reason to try once more. If this guide has narrowed the fault to one layer but you are not confident about touching that layer — especially a BIOS update, DDU, the registry, or opening the machine — start with a free diagnostic and decide once the results are in. Prices are on the pricing page; apart from battery from HK$580, screen from HK$1,280, motherboard chip-level repair from HK$880, and keyboard from HK$480, all other repairs are quoted in writing after diagnosis. The shop is at Room 1209, Daly Plaza, Shek Mun, Shatin; telephone +852 2186 8010; WhatsApp +852 6558 6806; opening hours 12:00–19:00.

Sources

All key claims in this guide trace back to the following sources (the full merged list is in sources.md`: 71 deduplicated sources — 32 from group A and 42 from group B, with 3 URLs shared by both groups). First-party sources are Microsoft official documents (Learn and Support) and vendor official support documents (Intel, NVIDIA, AMD, Lenovo, Dell, HP); second-hand sources are used only as support, with first-party material deciding the key mechanisms.

  • [A-S1] Microsoft Support, "Error codes in Device Manager in Windows". https://support.microsoft.com/en-us/windows/hardware/drivers/error-codes-in-device-manager-in-windows
  • [A-S2] Microsoft Learn, "Differences Between WDM and WDF". https://learn.microsoft.com/en-us/windows-hardware/drivers/wdf/differences-between-wdm-and-kmdf
  • [A-S3] Microsoft Learn, "Kernel-Mode Code Signing Requirements". https://learn.microsoft.com/en-us/windows-hardware/drivers/install/kernel-mode-code-signing-requirements--windows-vista-and-later-
  • [A-S4] Microsoft Learn, "Driver Signing Policy". https://learn.microsoft.com/is-is/windows-hardware/drivers/install/kernel-mode-code-signing-policy--windows-vista-and-later-
  • [A-S5] Microsoft Learn, "Looking at an INF File". https://learn.microsoft.com/en-us/windows-hardware/drivers/install/looking-at-an-inf-file
  • [A-S6] Microsoft Learn, "Overview of the Driver Package Selection Process". https://learn.microsoft.com/vi-vn/windows-hardware/drivers/install/overview-of-the-driver-selection-process
  • [A-S7] Microsoft Learn, "How Windows Ranks Driver Packages". https://learn.microsoft.com/th-th/windows-hardware/drivers/install/how-windows-ranks-driver-packages
  • [A-S8] Microsoft Learn, "Device Nodes and Device Stacks". https://learn.microsoft.com/et-ee/windows-hardware/drivers/gettingstarted/device-nodes-and-device-stacks
  • [A-S9] Microsoft Learn, "Adding a PnP Device to a Running System". https://learn.microsoft.com/en-au/windows-hardware/drivers/kernel/adding-a-pnp-device-to-a-running-system
  • [A-S10] Microsoft Learn, "Device Drivers and Deployment Overview". https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-8.1-and-8/hh825697(v=win.10)
  • [A-S11] Microsoft Learn, "Troubleshooting Driver Signing Installation". https://learn.microsoft.com/vi-vn/windows-hardware/drivers/install/troubleshooting-driver-signing-installation
  • [A-S12] Microsoft Learn, "Getting Started with UMDF". https://learn.microsoft.com/vi-vn/windows-hardware/drivers/wdf/getting-started-with-umdf-version-2
  • [A-S13] Microsoft Learn, "WDDM Architecture". https://learn.microsoft.com/en-us/windows-hardware/drivers/display/windows-vista-and-later-display-driver-model-architecture
  • [A-S14] Microsoft Learn, "Choose a Driver Model for Developing a USB Driver". https://learn.microsoft.com/en-us/windows-hardware/drivers/usbcon/winusb-considerations
  • [A-S15] Intel Support, "Warning: Installing This Graphics Driver From Intel May Overwrite…". https://www.intel.com/content/www/us/en/support/articles/000058958/graphics.html
  • [A-S16] Intel Support, "Error Message: Computer Manufacturer Graphics Driver Detected". https://www.intel.com/content/www/us/en/support/articles/000005469/graphics.html
  • [A-S17] NVIDIA Customer Help, "How to enable NVIDIA Graphics Driver and NVIDIA App installer logging". https://nvidia.custhelp.com/app/answers/detail/a_id/3171/kw/CSM/related/1
  • [A-S18] AMD Cleanup Utility (via Graphics Card Hub's account of AMD's official tool description). https://graphicscardhub.com/graphics-driver-removal-tools/
  • [A-S19] Microsoft Q&A, "DVD has stopped working - registry corrupted - code 19". https://learn.microsoft.com/en-us/answers/questions/2568271/dvd-has-stopped-working-registry-corrupted-code-19
  • [A-S20] UMA Technology, "Display Driver Uninstaller (DDU) 18.0.8.1 Download". http://umatechnology.org/display-driver-uninstaller-ddu-18-0-8-1-download-official-link-hashes-and-safe-mode-guide/
  • [A-S21] TechDows, "SFC /SCANNOW: Step-by-Step Guide to Windows System File Checker Tool 2025". https://techdows.com/sfc-scannow-step-by-step-guide-to-windows-system-file-checker-tool-2025.html
  • [A-S22] HP, "What Does Windows Safe Mode Actually Do, and When to Use It". https://www.hp.com/us-en/tech-takes/software/explainer/what-does-windows-safe-mode-do.html
  • [A-S23] How-To Geek, "Driver updater apps are predatory scareware". https://www.howtogeek.com/stop-installing-driver-updaters-on-your-windows-pc/
  • [A-S24] Displaycard-Repair.com, "GPU Driver Stopped Responding and Recovered (TDR)?". https://www.displaycard-repair.com/blog/gpu-driver-stopped-responding-recovered-tdr-timeout-diagnosis/
  • [A-S25] Displaycard-Repair.com, "Laptop Game Running Slow? MUX, Optimus & Switchable Graphics Explained". https://www.displaycard-repair.com/blog/laptop-game-using-integrated-gpu-mux-optimus-switchable-graphics-check/
  • [A-S26] ZESTRON, "Moisture Impact on Electronics: Risks & Solutions". https://www.zestron.com/en/know-how/applications-analytic/moisture-on-assemblies
  • [A-S27] Lenovo, "BIOS update package ReadMe". https://download.lenovo.com/pccbbs/desktop/m4yjy1busa.html
  • [A-S28] Lenovo Support, "Drivers & Software". https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/300-series/330-15ikb-type-81de/81fe/downloads/driver-list/component?name=BIOS%2FUEFI
  • [A-S29] Lenovo Vantage / System Update (via UMA Technology practical guide). https://umatechnology.org/bios-driver-update-lenovo/
  • [A-S30] UMA Technology, "Stop Windows Update Reinstalling a Bad Graphics Driver". http://umatechnology.org/how-to-prevent-windows-update-from-reinstalling-a-problematic-graphics-driver/
  • [A-S31] Microsoft Q&A, "Is WinZip driver updater safe?". https://learn.microsoft.com/en-us/answers/questions/3718427/is-winzip-driver-updater-safe
  • [A-S32] Woshub, "Permanently Disable Driver Signature Enforcement on Windows 11". https://woshub.com/disable-driver-signature-enforcement-windows/
  • [B-S1] Microsoft Support, "Error codes in Device Manager in Windows" (same URL as [A-S1], shared by both groups). https://support.microsoft.com/en-us/windows/hardware/drivers/error-codes-in-device-manager-in-windows
  • [B-S2] Microsoft Learn, "Device Manager Problem Codes". https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/device-manager-problem-codes
  • [B-S3] Microsoft Learn, "How Windows Ranks Driver Packages". https://learn.microsoft.com/en-us/windows-hardware/drivers/install/how-windows-ranks-driver-packages
  • [B-S4] Microsoft Learn, "Overview of the Driver Package Selection Process". https://learn.microsoft.com/en-us/windows-hardware/drivers/install/overview-of-the-driver-selection-process
  • [B-S5] Microsoft Learn, "How Windows Selects a Driver Package for a Device". https://learn.microsoft.com/en-us/windows-hardware/drivers/install/how-windows-selects-a-driver-for-a-device
  • [B-S6] Microsoft Learn, "PnPUtil Command Syntax". https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/pnputil-command-syntax
  • [B-S7] Microsoft Learn, "pnputil (Windows Server commands)". https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/pnputil
  • [B-S8] Microsoft Learn, "DISM Driver Servicing (.inf) Command-Line Options". https://learn.microsoft.com/vi-vn/windows-hardware/manufacture/desktop/dism-driver-servicing-command-line-options-s14?view=windows-11
  • [B-S9] Microsoft Learn, "Add and Remove Driver packages to an Offline Windows Image". https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-and-remove-drivers-to-an-offline-windows-image?view=windows-11&viewFallbackFrom=windows-11%3Ftarget%3D_blank
  • [B-S10] Microsoft Learn, "WDDM Support for Timeout Detection and Recovery (TDR)". https://learn.microsoft.com/en-us/windows-hardware/drivers/display/timeout-detection-and-recovery
  • [B-S11] Microsoft Learn, "TDR registry keys". https://learn.microsoft.com/en-us/windows-hardware/drivers/display/tdr-registry-keys
  • [B-S12] Microsoft Learn, "How to Use Driver Verifier for Driver Testing". https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/driver-verifier
  • [B-S13] Microsoft Learn, "verifier (Windows Server commands)". https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/verifier
  • [B-S14] Microsoft Learn, "Viewing Hidden Devices". https://learn.microsoft.com/th-th/windows-hardware/drivers/install/viewing-hidden-devices
  • [B-S15] Microsoft Support, "Device Manager does not display devices that are not connected". https://support.microsoft.com/en-au/topic/device-manager-does-not-display-devices-that-are-not-connected-e7148232-40ae-bb07-0077-88f2e859b53f
  • [B-S16] Microsoft Learn, "Troubleshooting Driver Signing Installation (SetupAPI log analysis)" (same URL as [A-S11], shared by both groups). https://learn.microsoft.com/vi-vn/windows-hardware/drivers/install/troubleshooting-driver-signing-installation
  • [B-S17] Microsoft Learn, "INF DriverVer Directive". https://learn.microsoft.com/en-us/windows-hardware/drivers/install/inf-driverver-directive
  • [B-S18] Microsoft Learn, "Feature Score". https://learn.microsoft.com/ar-sa/windows-hardware/drivers/install/feature-score--windows-vista-and-later-
  • [B-S19] Microsoft Learn, "Signature Score". https://learn.microsoft.com/ar-sa/windows-hardware/drivers/install/signature-score--windows-vista-and-later-
  • [B-S20] Microsoft Learn, "!devnode (WinDbg)". https://learn.microsoft.com/vi-vn/windows-hardware/drivers/debuggercmds/-devnode
  • [B-S21] Microsoft Learn, "!devstack (WinDbg)". https://learn.microsoft.com/en-us/windows-hardware/drivers/debuggercmds/-devstack
  • [B-S22] Microsoft Learn, "When are WDM Device Objects Created". https://learn.microsoft.com/th-th/windows-hardware/drivers/kernel/when-are-wdm-device-objects-created-
  • [B-S23] Microsoft Learn, "Event ID 219 is logged when a device is plugged into a Windows-based system". https://learn.microsoft.com/ro-ro/troubleshoot/windows-client/setup-upgrade-and-drivers/event-id-219-when-device-plugged-in-windows-system
  • [B-S24] Microsoft Learn, "Fast startup causes hibernation or shutdown to fail in Windows 10 or Windows 8.1". https://learn.microsoft.com/en-us/troubleshoot/windows-client/setup-upgrade-and-drivers/fast-startup-causes-system-hibernation-shutdown-fail
  • [B-S25] Microsoft Learn (Archive/Q&A), "Event ID 201, 202, 200 - DeviceSetupManager". https://learn.microsoft.com/en-us/archive/msdn-technet-forums/9f18415e-cad6-4e77-b44f-30f49b3abce7
  • [B-S26] Microsoft Learn, "Ranking a Biometric Driver on Windows Update". https://learn.microsoft.com/en-us/windows-hardware/drivers/biometric/ranking-a-biometric-driver-on-windows-update
  • [B-S27] Intel Community, "Codes 10, 22, 28, 31, 43 or 45 Errors in Device Manager for Bluetooth / Wireless (Wi-Fi) Devices". https://community.intel.com/t/problem-with-the-driver-on-my-wifi-card/131726/2
  • [B-S28] Dell Support, "How to Configure Windows Hello in Windows 10 for Biometric Scanners". https://www.dell.com/support/kbdoc/en-us/000142015/how-to-configure-windows-hello-in-windows-10-for-biometric-scanners
  • [B-S29] Lenovo Support, "Intel Management Engine Firmware update readme". https://download.lenovo.com/pccbbs/mobiles/n34rg18w.html
  • [B-S30] Lenovo Support, "BIOS Update Utility for Windows, ThinkPad P1 Gen 6". https://download.lenovo.com/pccbbs/mobiles/n3zuj07w.txt
  • [B-S31] HP Support Community, "Thunderbolt Firmware Updateprobleme". https://h30434.www3.hp.com/t5/Notebook-Hardware-and-Upgrade-Questions/Thunderbolt-Firmware-Updateprobleme/td-p/9196307
  • [B-S32] Intel Community, "TB 4 controller failure in Thunderbolt Share". https://community.intel.com/rss/message?board.id=ThunderboltShare&message.id=271
  • [B-S33] Hong Kong Observatory, "Monthly Meteorological Normals for Hong Kong (1991–2020)". https://www.weather.gov.hk/en/cis/normal/1991_2020/normals.htm
  • [B-S34] Microsoft Learn, "CM_PROB_FAILED_INSTALL (Code 28)". https://learn.microsoft.com/da-dk/windows-hardware/drivers/install/cm-prob-failed-install
  • [B-S35] Microsoft Learn, "Using Device Fundamentals Tests to Reproduce Device Manager Problem Codes". https://learn.microsoft.com/en-us/windows-hardware/test/hlk/testref/using-device-fundamentals-tests-to-reproduce-device-manager-problem-codes
  • [B-S36] Endpoint Weekly, "A driver arrived from Windows Update and broke a fleet". https://www.endpointweekly.com/blog/driver-arrived-from-windows-update-prove-delivery-path-setupapi-dev-log.html
  • [B-S37] displaycard-repair.com, "GPU Driver Stopped Responding and Recovered (TDR)" (same URL as [A-S24], shared by both groups). https://www.displaycard-repair.com/blog/gpu-driver-stopped-responding-recovered-tdr-timeout-diagnosis/
  • [B-S38] displaycard-repair.com, "GPU Code 52". https://www.displaycard-repair.com/blog/gpu-code-52-windows-cannot-verify-driver-digital-signature-guide/
  • [B-S39] Microsoft Q&A, "USB xHCI Compliant Host Controller Code 10". https://learn.microsoft.com/en-us/answers/questions/3914930/usb-xhci-compliant-host-controller-code-10
  • [B-S40] Microsoft Learn, "Deployment Troubleshooting and Log Files". https://learn.microsoft.com/vi-vn/windows-hardware/manufacture/desktop/deployment-troubleshooting-and-log-files?view=windows-11
  • [B-S41] Lenovo, "Thunderbolt SW and FW Install How To Guide" (install Thunderbolt SW first, then FW; firmware update return codes 0x225–0x229, 100, 3000, 4000; accessed via the also.pt mirror). https://www.also.pt/ec/cms5/media/documents/5110_1/lenovo_20/thunderbolt_sw_and_fw_install_how_to_guide.pdf
  • [B-S42] Microsoft Learn, "Windows 10 Home and Pro - Microsoft Lifecycle" (Windows 10 support ended on 14 October 2025). https://learn.microsoft.com/en-us/lifecycle/products/windows-10-home-and-pro
Share this article

Need Professional Laptop Repair?

Laptop King has 15+ years of repair experience in Shek Mun, Sha Tin. Free diagnosis, transparent pricing, no fix no fee. 180-day warranty for your peace of mind.

LK
Laptop King
15+ years laptop repair experience in Hong Kong · Chip-level motherboard specialist
Shek Mun, Sha Tin · Tat Lee Plaza Room 1209