From 43396401b19888eb07859f92ec2f3ee94cd06071 Mon Sep 17 00:00:00 2001 From: Mr-Update <37781396+Mr-Update@users.noreply.github.com> Date: Thu, 12 Oct 2023 21:55:56 +0200 Subject: [PATCH] Update _index.de.md --- .../self-host/client-deployment/_index.de.md | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/content/self-host/client-deployment/_index.de.md b/content/self-host/client-deployment/_index.de.md index 3c8c336..baa685a 100644 --- a/content/self-host/client-deployment/_index.de.md +++ b/content/self-host/client-deployment/_index.de.md @@ -35,13 +35,13 @@ if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdenti $rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RustDesk\").Version) -if($rdver -eq "1.2.2") +if ($rdver -eq "1.2.2") { Write-Output "RustDesk $rdver ist die neueste Version" Exit } -If (!(Test-Path C:\Temp)) +if (!(Test-Path C:\Temp)) { New-Item -ItemType Directory -Force -Path C:\Temp > null } @@ -70,11 +70,11 @@ while ($arrService.Status -ne 'Running') } cd $env:ProgramFiles\RustDesk\ -.\RustDesk.exe --get-id | Write-Output -OutVariable rustdesk_id +.\rustdesk.exe --get-id | Write-Output -OutVariable rustdesk_id -.\RustDesk.exe --config $rustdesk_cfg +.\rustdesk.exe --config $rustdesk_cfg -.\RustDesk.exe --password $rustdesk_pw +.\rustdesk.exe --password $rustdesk_pw Write-Output "..............................................." # Den Wert der ID-Variable anzeigen @@ -85,7 +85,7 @@ Write-Output "Passwort: $rustdesk_pw" Write-Output "..............................................." ``` -### Windows batch/cmd +### Windows Batch/CMD ```bat @echo off @@ -95,8 +95,9 @@ setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION set alfanum=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 set rustdesk_pw= -FOR /L %%b IN (1, 1, 12) DO ( - SET /A rnd_num=!RANDOM! %% 62 +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! ) @@ -114,11 +115,14 @@ rustdesk.exe --silent-install timeout /t 20 cd "C:\Program Files\RustDesk\" -for /f "delims=" %%i IN ('rustdesk.exe --get-id ^| more') DO set rustdesk_id=%%i +rustdesk.exe --install-service +timeout /t 20 -RustDesk.exe --config %rustdesk_cfg% +for /f "delims=" %%i in ('rustdesk.exe --get-id ^| more') do set rustdesk_id=%%i -RustDesk.exe --password %rustdesk_pw% +rustdesk.exe --config %rustdesk_cfg% + +rustdesk.exe --password %rustdesk_pw% echo ............................................... REM Den Wert der ID-Variablen ausgeben