Skip to main content
KBY Technologies Logo
Lexicon
Lexicon
Windows Server

Device Driver

Difficulty: Introductory
4 min read
Updated 2026-12-02

In plain English

Plain definition

Picture an interpreter at a business meeting. The buyer speaks one language and the supplier another, and neither has to learn the other's. Every request goes through the interpreter, who knows exactly how the supplier likes things put. Each device has its own dialect, and its driver is the interpreter Windows relies on.

A device driver is a software component that lets the operating system and a device communicate. When an app needs data from a device, it calls a function in the operating system, the operating system calls a function in the driver, and the driver, which knows how to talk to that hardware, fetches the data and passes it back up the chain. On Windows, driverquery lists the drivers installed on a machine and changes nothing.

How a device driver works, technically

A driver is usually written by the device’s manufacturer. If a device follows a published hardware standard, Microsoft can supply the driver instead. Many requests pass through several drivers arranged in a driver stack. The one that talks directly to the device is the function driver, and drivers that do auxiliary processing, such as observing or checking requests, are filter drivers.

Some drivers have no device at all. A software driver runs in kernel mode so that a tool can reach protected operating system data, while the part with the user interface runs in user mode as an application.

Where you meet a device driver day to day

You meet drivers when you build a server image or replace hardware. The mode a driver runs in matters most. Code in user mode gets a private virtual address space, so a crash stays contained.

All kernel-mode code shares a single virtual address space. A kernel-mode driver that writes to the wrong address can damage the operating system or another driver, and if it crashes, the whole operating system crashes. Many drivers run in kernel mode, though some run in user mode.

Microsoft’s driver pages describe Windows in general, so check the vendor’s page for your hardware and your Windows Server release before replacing a driver.

Where it fits in the machine

A driver sits between the operating system and the hardware. Windows keeps installed driver packages in the Driver Store, a trusted collection held in a secure location on the local disk. Only packages in the Driver Store can be installed on a device. Copying a package in is called staging, and it is separate from installing the device.

Before staging, Windows checks that the package is trusted: its INF file must name a catalog file that holds hashes for the files it references and carries a trusted digital signature. Files in the Driver Store should not be changed by hand.

Example: listing the drivers on a machine

These commands only read information. In a command prompt or PowerShell window on the machine:

driverquery /fo csv

This lists the installed device drivers and their properties as comma-separated values. Adding /si gives information about signed drivers. Run from an elevated window, the next command lists the third-party driver packages in the Driver Store:

pnputil /enum-drivers

Both listings change nothing, so there is nothing to roll back. Removing a package is different: pnputil /delete-driver deletes it, and its /force flag does so even when devices use it. Export the package first with pnputil /export-driver and keep the folder.

To restore it, run pnputil /add-driver, which adds the package to the Driver Store but will not force it onto a device if it is not the highest-ranked driver. For another read-only audit, see the script for Windows devices with no BitLocker recovery key in Entra ID.

Device drivers are often confused with applications

The first mistake is treating a driver as an ordinary application. It is part of the path between the operating system and the device, and many drivers run in kernel mode, which applications do not.

The second is changing one casually. A faulty kernel-mode driver can crash the whole operating system, so change one deliberately and on a test system first.

  • Driver stack: the layers of drivers that take part in one request.
  • Function driver: the driver that communicates directly with the device.
  • Filter driver: a driver that does auxiliary processing on requests.
  • Kernel mode and user mode: the two processor modes in which code runs.
  • Driver Store: the trusted collection of driver packages on the local disk.

Further reading on device drivers

  • Microsoft Learn, “What is a driver?” and “User mode and kernel mode”.
  • Microsoft Learn, “Driver store”, “driverquery” and “PnPUtil Command Syntax”.

Checks before you change a driver

Record the installed drivers with driverquery /fo csv, export the package you plan to replace, and keep the old version until the new one has been tested. The next safe decision is to change one driver on one non-production machine and confirm the device still works.

About this page

Credited to

Dates

Published

Corrections

No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.

Was this useful?

Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.

Found this useful? Follow KBY for more like it.

More from KBY that goes with this term.