This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: Check for administrative privileges | |
net session >nul 2>&1 | |
if %errorlevel% neq 0 ( | |
echo Requesting administrative privileges... | |
powershell -Command "Start-Process '%~f0' -Verb RunAs" | |
exit /b) | |
echo Killing AnyDesk process... | |
taskkill /f /im AnyDesk.exe >nul 2>&1 |