@echo off
:: 自动请求管理员权限
:: 如果没有管理员权限，则重新以管理员方式运行自己

>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
    echo Requesting administrator privileges...
    powershell -command "Start-Process '%~0' -Verb runAs"
    exit /b
)

echo Running as administrator...
echo Deleting service: iedux
sc delete iedux

echo.
echo Done.
pause
