@echo off
%windir%\system32\reg.exe query "HKU\S-1-5-19" >nul 2>&1 || (
echo /!\ Run as administrator /!\
echo.
echo Press any key to continue ...
pause >nul
exit
)
pushd %~dp0
pnputil /a Realtek\Codec_8975.1\HDXASUS.inf /i
pnputil /a Realtek\Codec_8975.1\HDXACPASUS.inf /i
pnputil /a Realtek\Codec_8975.1\HDXSSTASUS.inf /i
pnputil /a Realtek\ExtRtk_8975.1\HDX_AsusExt_XPERI4_RTK.inf /i
pnputil /a Realtek\ExtRtk_8975.1\HDX_AsusExt_XPERI4_DSP_RTK_Gen3p1.inf /i
pnputil /a Realtek\RealtekAPO_787\RealtekAPO.inf /i
pnputil /a Realtek\RealtekAPO2_787\RealtekAPO2.inf /i
pnputil /a Realtek\RealtekService_268\RealtekService.inf /i
pnputil /a Realtek\RealtekHSA_222\RealtekHSA.inf /i
pnputil /a Realtek\RealtekASIO_5\RealtekASIO.inf /i
pnputil /a ThirdParty\DTS\DTSX_Ultra_UWP_APO4x_Asus_EXT_1.1.25.0\dtsapo4ultraAsusextensionpkg.inf /i
pnputil /a ThirdParty\DTS\DTS_UWP_APO4x_CORE_x64_1.3.3.0\dtsapo4x64.inf /i
pnputil /a ThirdParty\DTS\DTS_UWP_APO4x_Service_1.4.5.0\dtsapo4xservice.inf /i
pnputil /a ThirdParty\DTS\DTSX_Ultra_UWP_APO4x_HSA_1.7.0.0\dtsapo4xultrahsa.inf /i
shutdown /r /t 0