Skip to content

Instantly share code, notes, and snippets.

@brianfgonzalez
Last active October 2, 2018 12:38
Show Gist options
  • Save brianfgonzalez/054de14709fd3dc5c0976b6a52f63ca6 to your computer and use it in GitHub Desktop.
Save brianfgonzalez/054de14709fd3dc5c0976b6a52f63ca6 to your computer and use it in GitHub Desktop.
REM Install Windows ADK ( https://developer.microsoft.com/en-us/windows/hardware/windows-assessment-deployment-kit )
REM If USB3.0 drivers where not already injected into PE:
REM a. download our Win7x64 USB3.0 drivers:
REM USB 3.0 Host Controller Driver: http://pc-dl.panasonic.co.jp/dl/docs/069978?dc%5B%5D=002001&lang=005&no=20&oc=001020&p1=117&p2=1170534&score=1.0&sri=10357315&trn_org=2
REM USB 3.0 Driver: http://pc-dl.panasonic.co.jp/dl/docs/069977?dc%5B%5D=002001&lang=005&no=21&oc=001020&p1=117&p2=1170534&score=1.0&sri=10357315&trn_org=2
REM d. Extract the EXEs using 7zip.
REM e. Add the extracted folder path to the DriverPath variable.
REM f. un-REM the lines to install them.
REM In SCCM07, edit the "winpe.wim" boot file ( file name does NOT include packageid ) then run "Update Dis.." against the Boot Image in the console
SET BootImagePath=G:\sources\boot.wim
REM SET DriverPath=
if not exist \mount (md \mount)
dism /mount-wim /wimfile:"%BootImagePath%" /index:1 /mountdir:\mount
reg load hklm\importedsystem \mount\Windows\System32\config\SYSTEM
reg add "HKEY_LOCAL_MACHINE\importedsystem\ControlSet001\services\iusb3xhc\Parameters" /v "DisableLineInt" /t "REG_DWORD" /d 1 /f
REM dism /image:c:\mount /add-driver /driver:"%DriverPath%" /Recurse
reg unload hklm\importedsystem
timeout /t 5
dism /unmount-wim /mountdir:\mount /commit
pause
exit /b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment