Instantly share code, notes, and snippets.

What would you like to do?
REM Install Windows ADK ( )
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:
REM USB 3.0 Driver:
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
exit /b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment