cd /news/cybersecurity/anydesk-reset · home topics cybersecurity article
[ARTICLE · art-9630] src=gist.github.com ↗ pub= topic=cybersecurity verified=true sentiment=· neutral

AnyDesk Reset

The article provides a batch script titled "AnyDesk-Reset.cmd" designed to reset the remote desktop software AnyDesk. The script stops the AnyDesk service, deletes configuration files from the system and user directories, and then restarts the service to generate a new AnyDesk ID. It requires administrator privileges to run and includes steps to preserve user settings like the user.conf file and thumbnails during the reset process.

read1 min views19 publishedAug 3, 2023

AnyDesk-Reset.cmd

  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

Show hidden characters

@echo off & setlocal enableextensions

title Reset AnyDesk

reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& >NUL&exit) chcp 437

call :stop_any

del /f "%ALLUSERSPROFILE%\AnyDesk\service.conf"

del /f "%APPDATA%\AnyDesk\service.conf"

copy /y "%APPDATA%\AnyDesk\user.conf" "%temp%"

rd /s /q "%temp%\thumbnails" 2>NUL

xcopy /c /e /h /r /y /i /k "%APPDATA%\AnyDesk\thumbnails" "%temp%\thumbnails"

del /f /a /q "%ALLUSERSPROFILE%\AnyDesk*"

del /f /a /q "%APPDATA%\AnyDesk*"

call :start_any

:lic

type "%ALLUSERSPROFILE%\AnyDesk\system.conf" | find "ad.anynet.id=" || goto lic call :stop_any

move /y "%temp%\user.conf" "%APPDATA%\AnyDesk\user.conf"

xcopy /c /e /h /r /y /i /k "%temp%\thumbnails" "%APPDATA%\AnyDesk\thumbnails"

rd /s /q "%temp%\thumbnails"

call :start_any

echo *********

echo Completed.

echo(

goto :eof

:start_any

sc start AnyDesk

sc start AnyDesk

if %errorlevel% neq 1056 goto start_any set AnyDesk1=%SystemDrive%\Program Files (x86)\AnyDesk\AnyDesk.exe

set AnyDesk2=%SystemDrive%\Program Files\AnyDesk\AnyDesk.exe

if exist "%AnyDesk1%" start "" "%AnyDesk1%"

if exist "%AnyDesk2%" start "" "%AnyDesk2%"

exit /b

:stop_any

sc stop AnyDesk

sc stop AnyDesk

if %errorlevel% neq 1062 goto stop_any taskkill /f /im "AnyDesk.exe"

exit /b

── more in #cybersecurity 4 stories · sorted by recency
── more on @anydesk 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/anydesk-reset] indexed:0 read:1min 2023-08-03 ·