@echo off
%systemdrive%
cd %windir%/system32/
echo Please wait while installing drivers. Do not turn off or unplug the computer power during the installation...

@echo pnputil -a ".\UWD\Win64\DRIVERS\*.inf" /install
pnputil -a "%~dp0UWD\Win64\DRIVERS\*.inf" /install

@echo pnputil -a ".\UWD\Win64\DRIVERS\Netwtw06.inf" /install
pnputil -a "%~dp0UWD\Win64\DRIVERS\Netwtw06.inf" /install

@echo pnputil -a ".\UWD\Win64\DRIVERS\Netwtw08.inf" /install
pnputil -a "%~dp0UWD\Win64\DRIVERS\Netwtw08.inf" /install

@echo pnputil -a ".\UWD\Win64\DRIVERS\Netwtw6e.inf" /install
pnputil -a "%~dp0UWD\Win64\DRIVERS\Netwtw6e.inf" /install

@echo pnputil -a ".\UWD\Win64\Utilities\PIE\*.inf" /install
pnputil -a "%~dp0UWD\Win64\Utilities\PIE\*.inf" /install

@echo pnputil -a ".\UWD\Win64\Utilities\PIE\PieExtension.inf" /install
pnputil -a "%~dp0UWD\Win64\Utilities\PIE\PieExtension.inf" /install

%~d0
cd %~dp0
%windir%/system32/pnputil /add-driver .\UWD\Win64\DRIVERS\*.inf /install
rem REG ADD HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\0009\ /v WowlanS5Enabled /t REG_DWORD /d 1 /f

rem S5WOL.bat

@echo Done

EXIT /B
