@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.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_DOLBY_Wrap_RTKGen3p1_KD.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\Dolby\ext_rtk_asus_v5.303.128.39\dax3_ext_rtk_asus.inf /i
pnputil /a ThirdParty\Dolby\swc_aposvc_v651\dax3_swc_aposvc.inf /i
pnputil /a ThirdParty\Dolby\swc_hsa_v609\dax3_swc_hsa.inf /i
shutdown /r /t 0