Driver Store (DriverStore\FileRepository)
The Driver Store is a protected folder, C:\Windows\System32\DriverStore\FileRepository, where Windows keeps every driver package that has been staged on the PC. Windows installs devices only from packages in the Driver Store, so old graphics and printer drivers can accumulate there and take several gigabytes.
1How packages get there
When a driver is installed, Windows first copies (stages) the whole package, with its INF file, into the Driver Store, then installs it for the device. Packages appear as oem<number>.inf in tools such as pnputil.
2Removing old packages
Packages that no device uses can be removed with pnputil. pnputil /enum-drivers lists the third-party packages with their published name, provider, class and version. pnputil /delete-driver oem<number>.inf removes a package; Windows refuses if a device still uses it unless /force is added, which should be avoided.
How to list and remove an unused driver package
- Open Terminal (Admin).
- Run:
pnputil /enum-driversand note the published name (oem<number>.inf) of an old version. - Create a restore point first.
- Run:
pnputil /delete-driver oem<number>.inf - If Windows reports that the package is in use, keep it.
Cautions
- Never delete folders inside FileRepository by hand.
- Do not use /force on drivers for storage, network or display devices: the PC can lose the device at the next start.
Related articles
- DISM (Deployment Image Servicing and Management)What DISM is, the /CheckHealth, /ScanHealth and /RestoreHealth commands, and how DISM and SFC work together to repair Windows.
- Windows Recovery Environment (WinRE)What WinRE is, how to open it, what tools it offers, and how to check it with reagentc /info.
- SFC (System File Checker)What sfc /scannow does, how to read its results, where the CBS.log is and when to run DISM first.
Sources
- Driver Store (Microsoft Learn) learn.microsoft.com
- PnPUtil command syntax (Microsoft Learn) learn.microsoft.com
Note: Rain Cleaner makes a restore point and a copy of the current drivers before it installs a driver.
Last reviewed: