Copying drivers from running Windows 10 installation to installation image

in windows •  3 years ago  (edited)

Sometimes installation image doesn't have all the drivers for current hardware...
It's possible to copy all drivers from current Windows installation using commands :

NOTES:

  1. Name parameter must match the edition of the currently installed Windows.
  2. You can skip creating the directories if they already exist


md C:\install
md C:\temp
Dism /Mount-Image /ImageFile:C:\$Windows.~WS\Sources\install.wim /Name:"Windows 10 Home" /MountDir:C:\install
Dism /Image:C:\install /Add-Driver /Driver:"C:\Windows\System32\DriverStore\FileRepository" /Recurse
Dism /Cleanup-Image /Image:"C:\install" /StartComponentCleanup /ResetBase /ScratchDir:C:\temp
Dism /Unmount-Image /MountDir:C:\install /Commit

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!