feat: improve AnyDesk reset logic

- Added Administrator privileges check

- Added 32-bit && 64-bit registry path support

- Implemented flag logic for clean status output
This commit is contained in:
2026-04-13 15:52:27 +03:00
parent 03c7f5c90d
commit 3041af9013
2 changed files with 103 additions and 11 deletions
+32
View File
@@ -0,0 +1,32 @@
# 🛠 Anydesk ID reset utility
A lightweight Batch utility to hard-reset AnyDesk configuration and identity. Useful for resolving ID-related issues or clearing workstation footprints on Windows 10/11 \
(including LTSC).
---
### 🚀 Key Features
* **Hard Reset:** Cleans both User (`%AppData%`) and System (`%ProgramData%`) configurations.
* **Registry Cleanup:** Automatically detects and removes AnyDesk keys from HKLM (`32-bit` & `64-bit` paths).
* **Process Management:** Safely terminates AnyDesk processes before cleanup.
* **Privilege Check:** Built-in verification for Administrator rights.
* **Zero Dependencies:** Pure Windows Batch. No external tools required.
* **Portable:** Can be run directly from a USB flash drive. No installation required.
### 🛠 Usage
1. Right-click `anydesk-id-reseter.bat`.
2. Select Run as Administrator.
3. Follow the on-screen status.
4. Launch AnyDesk to generate a new ID.
### 🔍 Technical Details
The script targets the following components:
* **Files:** `service.conf`, `system.conf` (User & System-wide).
* **Registry:**\
`HKLM\SOFTWARE\WOW6432Node\AnyDesk`\
`HKLM\SOFTWARE\AnyDesk`
---
### ⚖️ License
MIT [LICENSE](https://github.com/andsyrovatko/s4k-admin-toolbox/blob/main/LICENSE). Free to use and modify.