Загрузка данных


@echo off

set RUSTDESK="C:\Program Files\RustDesk\rustdesk.exe"

echo Stopping RustDesk...
taskkill /f /im rustdesk.exe >nul 2>&1
net stop RustDesk >nul 2>&1

timeout /t 2 >nul

echo Creating config...

mkdir "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config" >nul 2>&1

(
echo [options]
echo custom-rendezvous-server = "155.212.245.106"
echo relay-server = "155.212.245.106"
echo key = "kh7K8SXhwXmtmKdvtNEQDP1mZr7oQSDOnbFhxBByLCk="
echo approve-mode = "password"
echo verification-method = "use-permanent-password"
echo allow-remote-config-modification = "Y"
echo enable-unsecure-tls = "Y"
) > "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml"

timeout /t 1 >nul

echo Starting RustDesk service...
net start RustDesk >nul 2>&1

timeout /t 5 >nul

echo Setting permanent password...
%RUSTDESK% --password "Lemon.3712"

timeout /t 2 >nul

echo Restarting RustDesk...
taskkill /f /im rustdesk.exe >nul 2>&1

timeout /t 2 >nul

start "" %RUSTDESK%

echo.
echo Settings installed.
pause