here is my script to enable usb boot:
cd /D %~dp0
xcopy waitbt.sys %SystemRoot%\system32\drivers\
reg import waitbt.reg
reg import usb_boot_criticaldevicedatabase.reg
reg import usb3_boot_criticaldevicedatabase.reg
xcopy usb_boot.bat %SystemRoot%\system32\
%SystemRoot%\system32\usb_boot.bat
here is my waitbt.reg
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\waitbt]
"Type"=dword:00000001
"Start"=dword:00000000
"ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,\
72,00,69,00,76,00,65,00,72,00,73,00,5c,00,77,00,61,00,69,00,74,00,62,00,74,\
00,2e,00,73,00,79,00,73,00,00,00
"Group"="SCSI Miniport"
here is my usb_boot.bat:
@echo off
cd /D %~dp0
rem intel cpu on demand for amd cpus compatibility
reg query "hklm\system\currentcontrolset\services\intelppm"
if %errorlevel% == 0 (
reg add "hklm\system\currentcontrolset\services\intelppm" /f /v "Start" /t REG_DWORD /d 3
)
rem usb2 services
call :srv_reset "hklm\system\currentcontrolset\services\usbccgp" "Boot Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\usbehci" "Boot Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\usbohci" "Boot Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\usbuhci" "Boot Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\usbhub" "System Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\usbstor" "SCSI miniport"
rem usb3 services
call :srv_reset "hklm\system\currentcontrolset\services\amdxhc" "Boot Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\amdhub30" "System Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\asmtxhci" "Boot Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\asmthub3" "System Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\EtronXHCI" "Boot Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\EtronHUB3" "System Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\FLxHCIc" "Boot Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\FLxHCIh" "System Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\nusb3xhc" "Boot Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\nusb3hub" "System Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\rusb3xhc" "Boot Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\rusb3hub" "System Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\tixhci" "Boot Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\tihub3" "System Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\xhcdrv" "Boot Bus Extender"
call :srv_reset "hklm\system\currentcontrolset\services\ViaHub3" "System Bus Extender"
goto :EOF
:srv_reset
reg query %1
if %errorlevel% == 0 (
reg add %1 /f /v "Group" /t REG_SZ /d %2
reg add %1 /f /v "Start" /t REG_DWORD /d 0
)
exit /b
here is the usb_boot_criticaldevicedatabase:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\*pnp0a03]
"ClassGUID"="{4D36E97D-E325-11CE-BFC1-08002BE10318}"
"Service"="pci"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#cc_0c0300]
"ClassGUID"="{36FC9E60-C465-11CF-8056-444553540000}"
"Service"="usbuhci"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#cc_0c0310]
"ClassGUID"="{36FC9E60-C465-11CF-8056-444553540000}"
"Service"="usbohci"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#cc_0c0320]
"ClassGUID"="{36FC9E60-C465-11CF-8056-444553540000}"
"Service"="usbehci"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\usb#root_hub]
"ClassGUID"="{36FC9E60-C465-11CF-8056-444553540000}"
"Service"="usbhub"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\usb#root_hub20]
"ClassGUID"="{36FC9E60-C465-11CF-8056-444553540000}"
"Service"="usbhub"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\usb#class_09]
"ClassGUID"="{36FC9E60-C465-11CF-8056-444553540000}"
"Service"="usbhub"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\usb#class_08]
"ClassGUID"="{36FC9E60-C465-11CF-8056-444553540000}"
"Service"="USBSTOR"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\gendisk]
"ClassGUID"="{4D36E967-E325-11CE-BFC1-08002BE10318}"
"Service"="disk"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\usbstor#disk]
"ClassGUID"="{4D36E967-E325-11CE-BFC1-08002BE10318}"
"Service"="disk"
Edited by mazak000, 19 December 2013 - 08:23 AM.