π AnyDesk Reset
A safe utility to reset Ι
nyDesk, manage backups of user.conf, and restore them when needed.
Includes an interactive menu (colorized in PowerShell, plain in BAT).
β‘ Quick Startβ
One-liner to download and run:
iwr -useb https://raw.githubusercontent.com/Kintoyyy/Adesk-Tool/main/reset-adesk-oneliner.ps1 | iex
Important: Run PowerShell as Administrator first, otherwise the reset/backup will fail.
π Featuresβ
- β
Reset Ι
nyDesk without touching your
user.conf - β
Clean reset (auto-backup, then remove
user.conf) - β
Backup
user.confwith timestamp β%AppData%\AnyDesk\Backups - β Restore from any saved backup (choose which file to restore)
- β οΈ Resetting will regenerate a new AnyDesk ID
- β οΈ Saved devices will need to re-enter the password after reset
π Backup Locationβ
All backups are stored in:
%USERPROFILE%\Documents\Adesk
Backups include:
- user.conf - Your AnyDesk configuration file
- thumbnails - Remote desktop thumbnails
Files are timestamped:
user.conf.YYYYMMDD-HHMMSS.bak
thumbnails.YYYYMMDD-HHMMSS.bak
Example:
user.conf.20251001-143025.bak
thumbnails.20251001-143025.bak
π How to Runβ
πΉ PowerShell (recommended)β
Option 1: Run directly from web (fastest)
iwr -useb https://raw.githubusercontent.com/Kintoyyy/Adesk-Tool/main/reset-adesk-oneliner.ps1 | iex
Option 2: Download & run locally
powershell -ExecutionPolicy Bypass -File ".\reset-adesk.ps1"
πΉ Batch Version (no colors)β
If you prefer a plain .bat tool (simpler, no colors), run:
reset-adesk.bat
π Menu Optionsβ
When executed, you'll see:
==================================================
_ _ _ _____ _
/ \ __| | ___ ___| | __ |_ _|__ ___ | |
/ _ \ / _ |/ _ \/ __| |/ / | |/ _ \ / _ \| |
/ ___ \ (_| | __/\__ \ < | | (_) | (_) | |
/_/ \_\__,_|\___||___/_|\_\ |_|\___/ \___/|_|
Ι
nyDesk Reset / Backup Tool
==================================================
[1] Reset Ι
nyDesk (keep user.conf)
[2] Clean Reset Ι
nyDesk (backup + remove user.conf)
[3] Backup user.conf
[4] Restore user.conf from backup
[5] Exit
Menu Actionsβ
| Option | Description |
|---|---|
| [1] | Resets AnyDesk without removing your configuration file |
| [2] | Creates a backup of your configuration, then performs a clean reset |
| [3] | Backs up your current user.conf with a timestamp |
| [4] | Restores a previously saved backup from the backup folder |
| [5] | Exits the tool |
βοΈ Prerequisitesβ
- β Windows 10 or later
- β PowerShell 5.0 or later
- β Administrator privileges (script auto-prompts)
- β
AnyDesk installed in default location:
%AppData%\AnyDesk
π Verificationβ
After running the tool, verify the action completed:
-
Check backup location:
Get-ChildItem "$env:USERPROFILE\Documents\Adesk" -
Verify AnyDesk status:
- New ID will be generated after reset
- Check in AnyDesk Settings β This Desk for the new ID
-
Confirm backup files:
- Files should appear timestamped in
Documents\Adeskfolder
- Files should appear timestamped in
π Troubleshootingβ
| Issue | Cause | Solution |
|---|---|---|
| "Access Denied" error | Not running as Administrator | Right-click PowerShell β "Run as Administrator" |
| Backup folder not created | First backup being created | Script auto-creates folder; run again if error persists |
| AnyDesk still has old ID | Cache not cleared | Restart AnyDesk application after reset |
| Cannot restore backup | Backup file corrupted | Verify backup files exist in Documents\Adesk folder |
| Script won't execute | ExecutionPolicy blocked | Run: powershell -ExecutionPolicy Bypass -File "reset-adesk.ps1" |
π Advanced Optionsβ
Manual Backup (without script)β
If you prefer to manually back up your configuration:
$source = "$env:AppData\AnyDesk\user.conf"
$timestamp = Get-Date -Format "yyyyMMdd-HHmmss"
$destination = "$env:USERPROFILE\Documents\Adesk\user.conf.$timestamp.bak"
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\Documents\Adesk" | Out-Null
Copy-Item -Path $source -Destination $destination
Write-Host "Backup saved: $destination"
Manual Reset (without script)β
To reset only (keeping user.conf):
# Stop AnyDesk service
Stop-Service -Name "AnyDesk" -Force -ErrorAction SilentlyContinue
# Remove registry entries
Remove-Item -Path "HKCU:\Software\AnyDesk" -Recurse -Force -ErrorAction SilentlyContinue
# Start AnyDesk service
Start-Service -Name "AnyDesk"
Batch File Executionβ
If using the .bat version, ensure it runs in Administrator mode:
@echo off
REM Run as Administrator
net session >nul 2>&1
if errorLevel 1 (
echo Please run this script as Administrator
pause
exit /b 1
)
REM Your reset logic here
β οΈ Important Notesβ
- Works only on Windows with AnyDesk installed in the default path
- Always run as Administrator (script checks and auto-prompts if not elevated)
- A reset will regenerate a new AnyDesk ID
- After reset, Unattended Access password must be re-set
- All previously saved devices must re-authenticate
- Backups are preserved even after reset
- Safe to run multiple timesβscript won't overwrite existing backups
β Completed!