Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo ON
- :: Nvidia: https://community.spiceworks.com/how_to/138812-wds-error-30-injecting-nvidia-drivers-into-windows-7-image-with-dism
- :: Extraire le pilote (C:\WIM\Nvidia\Extrait)
- :: cd C:\WIM\Nvidia\Extrait\Display.Driver
- :: Expand *.* c:\Drivers\Nvidia
- :: Supprimer le dossier Extrait
- :: Informations des versions: dism /Get-WimInfo /WimFile:%BOOTWIM%
- :: Informations des versions: dism /Get-WimInfo /WimFile:%INSTALLWIM%
- :: Boot.wim
- :: - 1 Boot Win 7 x64
- :: - 2 Boot Win 7 x64
- :: Install.wim:
- :: - 1 - Windows 7 Familial Premium (x64)
- :: - 2 - Windows 7 Professionnel (x64)
- :: - 3 - Windows 7 Familial Premium (x86)
- :: - 4 - Windows 7 Professionnel (x86)
- title "Integration des pilotes dans Windows 7"
- SET SOURCES=C:\WIM
- SET BOOTWIM=%SOURCES%\boot.wim
- SET INSTALLWIM=%SOURCES%\install.wim
- SET MOUNT=c:\WIM\mount
- SET USB=c:\WIM\USB_Drivers
- SET USB2=F:\Logiciels\Drivers\Maximus VIII\USB 3.0\Driver
- SET NVIDIA=C:\WIM\Nvidia\390.77
- SET KEYFAMILIAL=12345-67890-12345-67890-12345
- SET KEYPRO=12345-67890-12345-67890-12345
- :: Boot.wim dispose de 2 version
- SET VERSION=4
- cls
- echo "Etape 1 Boot : Montage de l'image boot" (Version= 1 ou 2, erreur sinon)
- dism /mount-wim /wimfile:%BOOTWIM% /index:%VERSION% /mountdir:%MOUNT%
- echo "Etape 2 Boot : Intégration des pilotes"
- dism /image:%MOUNT% /add-driver:%USB% /recurse
- echo "Etape 3 Boot : Appliquer Changement"
- dism /unmount-wim /mountdir:%MOUNT% /commit
- :: ----------------------------------------------------------------------------------------
- echo "Etape 1 Install : Montage de l'image install"
- dism /mount-wim /wimfile:%INSTALLWIM% /index:%VERSION% /mountdir:%MOUNT%
- echo "Etape 2 Install : Intégration des pilotes"
- dism /image:%MOUNT% /add-driver:%USB% /recurse
- dism /image:%MOUNT% /add-driver:"%USB2%" /recurse
- dism /image:%MOUNT% /add-driver:"%NVIDIA%" /recurse
- echo "Etape 3 Install : Appliquer Changement"
- dism /unmount-wim /mountdir:%MOUNT% /commit
- dism /unmount-wim /mountdir:%MOUNT% /discard
- :: Experimental
- :: dism /Image:%MOUNT% /Set-ProductKey:%Serial% /AcceptEula
- pause
- cls
Advertisement
Add Comment
Please, Sign In to add comment