Drthrax74

Windows 7 + USB 3.0 + Nvidia Drivers

Feb 11th, 2018
1,121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.15 KB | None | 0 0
  1. @echo ON
  2.  
  3.  
  4. :: Nvidia: https://community.spiceworks.com/how_to/138812-wds-error-30-injecting-nvidia-drivers-into-windows-7-image-with-dism
  5. :: Extraire le pilote (C:\WIM\Nvidia\Extrait)
  6. :: cd C:\WIM\Nvidia\Extrait\Display.Driver
  7. :: Expand *.* c:\Drivers\Nvidia
  8. :: Supprimer le dossier Extrait
  9.  
  10.  
  11. :: Informations des versions: dism /Get-WimInfo /WimFile:%BOOTWIM%
  12. :: Informations des versions: dism /Get-WimInfo /WimFile:%INSTALLWIM%
  13.  
  14. :: Boot.wim
  15. ::          - 1 Boot Win 7 x64
  16. ::          - 2 Boot Win 7 x64
  17.  
  18.  
  19.  
  20. :: Install.wim:
  21. ::          - 1 - Windows 7 Familial Premium (x64)
  22. ::          - 2 - Windows 7 Professionnel (x64)
  23. ::          - 3 - Windows 7 Familial Premium (x86)
  24. ::          - 4 - Windows 7 Professionnel (x86)
  25.  
  26.  
  27.  
  28.  
  29.  
  30. title "Integration des pilotes dans Windows 7"
  31.  
  32. SET SOURCES=C:\WIM
  33. SET BOOTWIM=%SOURCES%\boot.wim
  34. SET INSTALLWIM=%SOURCES%\install.wim
  35. SET MOUNT=c:\WIM\mount
  36. SET USB=c:\WIM\USB_Drivers
  37. SET USB2=F:\Logiciels\Drivers\Maximus VIII\USB 3.0\Driver
  38.  
  39. SET NVIDIA=C:\WIM\Nvidia\390.77
  40. SET KEYFAMILIAL=12345-67890-12345-67890-12345
  41. SET KEYPRO=12345-67890-12345-67890-12345
  42.  
  43.  
  44. :: Boot.wim dispose de 2 version
  45. SET VERSION=4
  46. cls
  47.  
  48.  
  49.  
  50.  
  51.  
  52. echo "Etape 1 Boot : Montage de l'image boot" (Version= 1 ou 2, erreur sinon)
  53. dism /mount-wim /wimfile:%BOOTWIM% /index:%VERSION% /mountdir:%MOUNT%
  54.  
  55. echo "Etape 2 Boot : Intégration des pilotes"
  56. dism /image:%MOUNT% /add-driver:%USB% /recurse
  57.  
  58.  
  59.  
  60. echo "Etape 3 Boot : Appliquer Changement"
  61. dism /unmount-wim /mountdir:%MOUNT% /commit
  62.  
  63.  
  64. :: ----------------------------------------------------------------------------------------
  65.  
  66. echo "Etape 1 Install : Montage de l'image install"
  67. dism /mount-wim /wimfile:%INSTALLWIM% /index:%VERSION% /mountdir:%MOUNT%
  68.  
  69.  
  70. echo "Etape 2 Install : Intégration des pilotes"
  71. dism /image:%MOUNT% /add-driver:%USB% /recurse
  72. dism /image:%MOUNT% /add-driver:"%USB2%" /recurse
  73. dism /image:%MOUNT% /add-driver:"%NVIDIA%" /recurse
  74.  
  75.  
  76.  
  77. echo "Etape 3 Install : Appliquer Changement"
  78. dism /unmount-wim /mountdir:%MOUNT% /commit
  79.  
  80.  
  81.  
  82.  
  83. dism /unmount-wim /mountdir:%MOUNT% /discard
  84.  
  85.  
  86.  
  87. :: Experimental
  88. :: dism /Image:%MOUNT% /Set-ProductKey:%Serial% /AcceptEula
  89.  
  90.  
  91.  
  92.  
  93. pause
  94. cls
Advertisement
Add Comment
Please, Sign In to add comment