-
-
Save janasco/c6168d17ed6eb4b6eaf7fd46fb775f60 to your computer and use it in GitHub Desktop.
@echo off & setlocal enableextensions | |
title Reset AnyDesk | |
reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& pause >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 |
Que excelente!!! Muchas gracias!!
All methods doesn't seem to work any more for me.
I used to just delete the following two files:
"C:\ProgramData\AnyDesk\system.conf"
"C:\ProgramData\AnyDesk\service.conf"
and it would work. Now that is not the case anymore. Even with all the scripts provided here, none of them worked.
Each time Anydesk tries to connect to the network it fails and I get "Disconnected from the network".
Anyone else having this issue as well?
i have the same issue like AR 69 above anything doesnt seems to work anymore
can we do this on macos?
i have the same issue like AR 69 above anything doesnt seems to work anymore
Uninstall, change Mac address, run script, reinstall.
Can someone tell me whether the above code or the scripts below work?
https://github.com/henriquelucas/Reset-Licen-a-Anydesk
https://github.com/MKultra6969/AnyDesk-reset
This script i use at my job. and also i would recommend another script that work with multiple scripts and multiple clients:
The idea is to host your scripts at your server or free hosting like hostinger/infinityfree. On your client pc you place a simple script that download actual script that you want to run, that is made so you can perfect your script and it will automaticly work for all, you just change it on your web hosting.
On client:
On server you can place your actual script, like for anydesk or another easy fix. something like just calling calculator will work:
The fact that you can delete the file is greate if they fire you, so u just delete the file on the hosting and they can't use your script, heheh xD