@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\HDXASUSTC.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_AVO_RTK.inf /i
pnputil /a Realtek\ExtRtk_8975.1\HDX_AsusExt_AVO_RTK_Gen3p1.inf /i
pnputil /a Realtek\ExtRtk_8975.1\HDX_AsusExt_AVO_V4_RTK_KD_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\SS3\OEM_INF_Extension_-_ASUS\AVoluteSS3Ext.inf /i
pnputil /a ThirdParty\SS3\A-Volute_APO_3_-_SWC\A-VoluteNh3ApoSwc.inf /i
shutdown /r /t 0