Restart Windows Audio Service Script

Place the following into a .bat file and run it.

@echo off

:: Run as Admin
set "params=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || (  echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )

net stop audiosrv 
net start audiosrv 

exit

Revision #4
Created 5 March 2023 16:35:36 by Chase
Updated 5 March 2023 16:36:37 by Chase