Windows 7 – Driverstore size

When it comes to OS deployment the size of the image to some extend does matter. Windows by default comes with a large set of plug and play device drivers that are included within the operating system installation sources.

Prestaged drivers in Windows Vista and Windows 7 are located under C:\Windows\system32\Driverstore.

If you run the following command against your mounted Windows 7 image file, you get a list of all PnPdrivers included within the Driverstore.

Dism /image:c:\mount /Get-Drivers /all

Now getting back to the image size. Looking at how we could eventually save image size space, I took a closer look at the Windows 7 Driverstore folder size, that on an installed system uses 624 MB. So that looked like a potential candidate to reduce image size.

As mentioned above 624 MB is what the Driverstore uses on an installed system, but how much does it consume within an image, taking into account that there the content is compressed.

Running the following command creates a separate WIM (image) file with just Driverstore content included.

Imagex /capture c:\temp\driverstore\ c:\temp\win7drv.wim “win7driverstore”

The result is that 624 MB Driverstore content now just uses 219 MB. If we add the /compress max option to the above Command brings the size even down to 197 MB

Conclusion: Beside the fact that officially the default driver store cannot be modified anyway (if I am wrong here let me know), I think that carrying those +- 220 MB don’t make much of a difference.

4 Replies to “Windows 7 – Driverstore size”

  1. Hi sir,
    So … are you saying that is is possible to compress C:/Windows/system32/DriverStore into an image file.
    then delete the “DriverStore” directory.
    And mount the image as “DriverStore” ?

    What I was trying to do is to use NTFS compress folder option to compress the DriverStore folder.
    but it seemed not possible. So … do you know of / or suggest any other ways to compress the DriverStore to make it smaller ?

  2. “Beside the fact that officially the default driver store cannot be modified anyway (if I am wrong here let me know)”

    Yes, Dism has a /remove-driver command just for that. Try it with Dism /online /remove-driver /?.

Leave a Reply