Active7 months ago
Removing Old and Unused Drivers from Driver Store using Powershell. Thereby, if the system doesn’t work correctly with the new driver, user can roll back to an older version of the driver at any moment. Windows Driver Store is located in the folder C: windows system32 DriverStore FileRepository.
I have been struggling getting some 3G USB modems and some other hardware to work and in the process I have managed to get a lot of unnecessary and just plain wrong drivers installed. This is causing my system and other hardware to work incorrectly. I would like to remove all the drivers on this system and have windows reinstall all the default drivers.
Can I do this with a Windows 7 repair install or how else can I get rid off all the current drivers.
fixer123422.2k1414 gold badges5656 silver badges8989 bronze badges
JakeJake37444 gold badges66 silver badges1818 bronze badges
3 Answers
I would recommend that you do a clean reinstall of Windows 7, that way you can wipe all of the old drivers, and Windows 7 will automatically reinstall the default drivers needed (for the most part).
Obviously, it is not possible to remove all of the drivers in an operating system, because it will break the OS permanently, thus a clean reinstall is pretty much the only way to go...
studiohack♦![Does Sysprep Remove Drivers Does Sysprep Remove Drivers](/uploads/1/2/6/3/126384889/644618692.jpg)
11.4k1818 gold badges8181 silver badges115115 bronze badges
You can use sysprep tool for that. Just run it from
PomaPomac:windowssystem32sysprepsysprep.exe
, check Generalize
and hit OK87244 gold badges1313 silver badges2424 bronze badges
Removing ALL drivers will damage windows and make your life horrible!Your are better off selectively removing the drivers.
![Remove Remove](/uploads/1/2/6/3/126384889/270361564.png)
Boot from Windows 7 DVDSelect Repair and command prompt
If instead of a wim file your working with an offline copy of windows substitute the path that has the windows folder on it for c:testoffline. When in the command prompt mode from the windows 7 DVD your drive letter may not be the same. Also with an offline copy of windows dism /Mount-Image maybe skipped.
This is all that is require on a offline version of windows.
Lists all drivers
feed the list one at a time into the remove command below. It is only necessary to mount once, not once per driver.
You create an empty folder called test and within that another empty folder called offline. The wim file will be mounted to that folder.
Remove a specific driver from the image. Multiple drivers can be removed on one command line. For example, type:
Removing a boot-critical driver package can make the offline Windows image unbootable
Adding drivers also has a command
cybernardcybernard10.9k33 gold badges1919 silver badges2828 bronze badges