@ECHO OFF & PUSHD "%~DP0" && CD /D "%~DP0"
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
copy /y "drivers\sysdiag.sys" "%WinDir%\System32\drivers\" >NUL
copy /y "drivers\hrfwdrv.sys" "%WinDir%\System32\drivers\" >NUL
sc create hrfwdrv binpath= "%WinDir%\System32\drivers\hrfwdrv.sys" type= kernel >NUL
sc create sysdiag binpath= "%WinDir%\System32\drivers\sysdiag.sys" type= kernel depend= FltMgr group= "PNP_TDI" >NUL
reg add "HKLM\SYSTEM\CurrentControlSet\Services\sysdiag" /f /v "ImagePath" /t REG_EXPAND_SZ /d "system32\DRIVERS\sysdiag.sys" >NUL
reg add "HKLM\SYSTEM\CurrentControlSet\Services\hrfwdrv" /f /v "ImagePath" /t REG_EXPAND_SZ /d "system32\DRIVERS\hrfwdrv.sys" >NUL
reg add "HKLM\SYSTEM\CurrentControlSet\Services\sysdiag" /f /v "Start" /t reg_dword /d "1" >NUL
reg add "HKLM\SYSTEM\CurrentControlSet\Services\hrfwdrv" /f /v "Start" /t reg_dword /d "1" >NUL
reg add "HKLM\SYSTEM\CurrentControlSet\Services\sysdiag" /f /v "Group" /d "PNP_TDI" >NUL
reg add "HKLM\SYSTEM\CurrentControlSet\Services\sysdiag\Instances" /f /v "DefaultInstance" /d "sysdiag" >NUL
reg add "HKLM\SYSTEM\CurrentControlSet\Services\sysdiag\Instances\sysdiag" /f /v "Altitude" /d "368330" >NUL
reg add "HKLM\SYSTEM\CurrentControlSet\Services\sysdiag\Instances\sysdiag" /f /v "Flags" /t reg_dword /d "0" >NUL
sc start sysdiag >NUL
sc start hrfwdrv >NUL
exit