@echo off
rem "Get-UAC Admin"
if exist "%SystemRoot%\SysWOW64" path %path%;%windir%\SysNative;%SystemRoot%\SysWOW64;%~dp0
bcdedit >nul
if '%errorlevel%' NEQ '0' (goto UACPrompt) else (goto UACAdmin)
:UACPrompt
%1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&exit
exit /B
:UACAdmin
cd /d "%~dp0"

@echo pnputil -add-driver "%~dp0HsaComponent\iaStorHsaComponent.inf" /install
pnputil -add-driver "%~dp0HsaComponent\iaStorHsaComponent.inf" /install

@echo pnputil -add-driver "%~dp0HsaExtension\iaStorHsa_Ext.inf" /install
pnputil -add-driver "%~dp0HsaExtension\iaStorHsa_Ext.inf" /install

@echo pnputil -add-driver "%~dp0VMD\iaStorVD.inf" /install
pnputil -add-driver "%~dp0VMD\iaStorVD.inf" /install

@echo Done
pause
