Driver Store-File Repository using huge disk space. How can I reduce – Microsoft Community
Posted by jpluimers on 2022/03/18
[WayBack] Driver Store-File Repository using huge disk space. How can I reduce – Microsoft Community
Try deleting the unneeded drivers by following the steps below:
- On the search bar, type command prompt, right-click on it from the list then run it as Administrator.
- Type the command
pnputil.exe /e > c:\drivers.txt
then click Enter.- This command will create a file
drivers.txt
onC:
drive with the list of driver packages that are stored in the File Repository folder.- Delete all unnecessary drivers with the help of command
pnputil.exe /d oemNN.inf
(NN
— is a number of drivers file package fromdrivers.txt
, as exampleoem07.inf
). In case the driver is in use, you will see an error while trying delete it.
This can happen if you swapped a lot of hardware around. Especially graphics drivers tend to be bloatware.
Note this only deletes uninstalled drivers. The problem: some driver software, especially video drivers, keeps parts installed, even during uninstall, and even when running in Safe Mode.
Examples for AMD:
Booting in Safe Mode
One of the nagging Windows 10 things is that out of the box it is hard to boot in safe mode: you have to reset and fail the boot your Windows system multiple times, or you have to hold a shift key (which some BIOS versions do not allow).
Luckily, you can reset the “press F8 during boot” behaviour of older Windows versions:
- Start an administrative command prompt (confirm UAC elevation if needed)
- Run this command (the bold changes the setting; the others keep track of the changes and show the difference):
bcdedit /enum > %temp%\bcdedit.original.txt bcdedit /set {bootmgr} DisplayBootMenu true bcdedit /enum > %temp%\bcdedit.F8-enabled.txt fc %temp%\bcdedit.original.txt %temp%\bcdedit.F8-enabled.txt
(many sites you also need to run something like
bcdedit /set {default} bootmenupolicy legacy
orbcdedit /set {current} bootmenupolicy legacy
or replace the “default
” and “current
” with the boot option of your choice, but that is not needed) - Reboot
- Press
F8
once (not multiple times!) as soon as the boot screen appears
Do not press
F8
twice, as it usually runs the mode with early loading of anti-virus software disabled. - Press
F4
for “Safe Mode”
This works way better than holding the shift key during rebooting: often that does not work on the machines I tried it on (despite [WayBack] How to boot Windows 10 in Safe Mode – CCleaner.com claiming it should work).
Notes
The DisplayBootMenu
for bootmgr
(which I found via [WayBack] Boot menu policy – set text or graphical style boot menu Windows 8) seems only documented for Azure site:docs.microsoft.com “bcdedit” “DisplayBootMenu” “bootmgr” – Google Search:
Disregard the official documentation and other links indicating about bootmenupolicy
as they require you to set it for each boot configuration, while setting DisplayBootMenu
for bootmgr
sets it for all configurations at once:
- [WayBack] BCDEdit /set – Windows drivers | Microsoft Docs
The BCDEdit /set command sets a boot entry option value in the Windows boot configuration data store (BCD) for Windows 7, Windows Server 2008, Windows 8, Windows 8.1,Windows 10, Windows Server 2012, and Windows Server 2012 R2.
- [WayBack] How to enable the F8 key to start Safe Mode in Windows 8
- [WayBack] Enable or Disable F8 Advanced Boot Options in Windows 10 | Tutorials
- [WayBack] boot – How do you start Windows 10 in safe mode? – Super User
Without bcdedit
, be prepared for lengthy steps:
- [WayBack] 8 ways to boot into Windows 10 Safe Mode | Digital Citizen
- [WayBack] Restart your Windows 10 PC quickly and easily- and whatever happened to Safe Mode? | BT
Boot menu options enabled
These options will be enabled when you have a boot menu (the numbers are the number keys or function keys to press in order to activate the option) via [Archive.is] Windows Startup Settings (including safe mode) – Windows Help:
- Enable Safe Mode with Networking
- Enable Safe Mode with Command Prompt
[WayBack] Image via [WayBack] Image Search from [WayBack] How to Fix a Computer That Won’t Start in Safe Mode:
Uninstall display drivers
The most effective way to fully get rid of a video driver is to run DDU (Display Driver Uninstaller) in Safe Mode.
I found it via [WayBack] Windows downgrade my Radeon Software down to 15.11 | Community.
- [WayBack] GitHub – Wagnard/display-drivers-uninstaller: Display Driver Uninstaller (DDU) a driver removal utility / cleaner utility
- [WayBack] [Guru3D.com]-DDU.zip
- [WayBack] Display Driver Uninstaller Download version 18.0.1.3
–jeroen
via:
[WayBack]
Leave a Reply