Script: reset-anydesk-id.bat
Purpose: Force AnyDesk to generate a new ID by clearing all local configuration files and restarting the service.
⚠️ Warning:
Running this script will delete all existing AnyDesk settings, including your current ID, aliases, trusted devices, and Unattended Access configuration.
If you need to keep your current AnyDesk session or ID, see the Keep your existing ID section before running it.
The script performs a full cleanup and reset of AnyDesk:
- Stops and disables the AnyDesk service.
- Kills any running
AnyDesk.exeprocesses. - Takes ownership of and deletes:
C:\ProgramData\AnyDesk— global config (contains AnyDesk ID and key)%AppData%\AnyDesk— per-user settings
- Re-enables and starts the service.
- Detects OS architecture (32-bit or 64-bit) and launches AnyDesk.
- Cleans up temporary files.
After running, AnyDesk will recreate configuration files from scratch — often resulting in a new AnyDesk ID.
Use this script if:
- AnyDesk won’t start or has corrupted settings.
- You intentionally need a fresh AnyDesk identity.
- You’re preparing a clean image (VM/template) that shouldn’t share the same ID.
It won’t fix:
- Network, DNS, or firewall problems
- License/account issues
- Remote-side connectivity issues
- Windows 10 / 11 / Server 2016 or newer
- Administrator privileges (right-click → Run as administrator)
- AnyDesk installed as a system service
- Local/physical access — unattended access will stop working
-
Download or clone this repository.
-
Right-click Command Prompt → Run as administrator.
-
Navigate to the folder containing the script.
-
Run:
reset-anydesk-id.bat