5

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.

fixer1234
  • 28,064
Jake
  • 679
  • 4
  • 9
  • 18

3 Answers3

6

Removing ALL drivers will damage windows and make your life horrible! Your are better off selectively removing the drivers.

Boot from Windows 7 DVD Select 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:\test\offline. 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.

Dism /Image:C:\ /Get-Drivers 

Lists all drivers

Dism /Image:C:\test\offline /Get-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.

Dism /Mount-Image /ImageFile:C:\test\images\install.wim /Name:"Windows 7 HomeBasic" /MountDir:C:\test\offline

Remove a specific driver from the image. Multiple drivers can be removed on one command line. For example, type:

Dism /Image:C:\test\offline /Remove-Driver /Driver:OEM1.inf /Driver:OEM2.inf

Removing a boot-critical driver package can make the offline Windows image unbootable

Adding drivers also has a command

Dism /Image:C:\test\offline /Add-Driver /Driver:C:\drivers\mydriver.inf /ForceUnsigned

Dism /Image:C:\test\offline /Add-Driver /Driver:c:\drivers /Recurse
cybernard
  • 14,924
5

You can use sysprep tool for that. Just run it from c:\windows\system32\sysprep\sysprep.exe, check Generalize and hit OK

Poma
  • 1,896
1

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
  • 13,477