rem @echo off
rem n6NFfmypdmrvXGbgDFPUsSP0ochrLEP5gj3Jh5PAoOQ=
REM Assign the value random password to the password variable
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
set alfanum=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
set rustdesk_pw=
for /L %%b in (1, 1, 12) do (
set /A rnd_num=!RANDOM! %% 62
for %%c in (!rnd_num!) do (
set rustdesk_pw=!rustdesk_pw!!alfanum:~%%c,1!
)
)
REM Get your config string from your Web portal and Fill Below
set rustdesk_cfg="=0nI9E1TvFEU1gmSzo2Z1AVRMJHaj9GMQN1cVBlREdmYHhldy1GZwlXbmZkT24mI6ISeltmIsIiI6ISawFmIsIiI6ISehxWZyJCLiUGZukGZhtWYuA3biojI0N3boJye"
REM ############################### Please Do Not Edit Below This Line #########################################
if not exist C:\Temp\ md C:\Temp\
cd C:\Temp\
curl -L "https://github.com/rustdesk/rustdesk/releases/download/1.2.3-1/rustdesk-1.2.3-1-x86_64.exe" -o rustdesk.exe
rustdesk.exe --silent-install
timeout /t 20
rem cd "C:\Program Files\RustDesk\"
rem rustdesk.exe --install-service
rem timeout /t 20
for /f "delims=" %%i in ('rustdesk.exe --get-id ^| more') do set rustdesk_id=%%i
rustdesk.exe --config %rustdesk_cfg%
rem kein Passwort setzen ... rustdesk.exe --password %rustdesk_pw%
echo ...............................................
REM Show the value of the ID Variable
echo RustDesk ID: %rustdesk_id%
REM Show the value of the Password Variable
rem echo Password: %rustdesk_pw%
rem echo ...............................................