Skip to content

Instantly share code, notes, and snippets.

@royharoush
Last active February 8, 2023 03:37
Show Gist options
  • Save royharoush/761ae4e2b60e9ef7528bedc273092c52 to your computer and use it in GitHub Desktop.
Save royharoush/761ae4e2b60e9ef7528bedc273092c52 to your computer and use it in GitHub Desktop.
#drivers http://www.gc14.com/hcon/downloads/USB-IntelAndGenericDrivers.rar
#the sources folder in windows installation contains a bad copy of dism, so we need to ponit directly at the windows 7 dism version.
mkdir c:\temp\mount1
cd d:\sources\
C:\Windows\SysWOW64\Dism.exe /mount-wim /wimfile:boot.wim /index:2 /mountdir:c:\temp\mount1
cd d:\sources\drivers
C:\Windows\SysWOW64\Dism.exe /image:c:\temp\mount1 /Add-Driver /driver:d:\sources\drivers /recurse
C:\Windows\SysWOW64\Dism.exe /unmount-wim /mountdir:c:\temp\mount1\ /commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment