Update _index.de.md

This commit is contained in:
Mr-Update 2023-10-12 21:55:56 +02:00 committed by GitHub
parent 56c1cb13c3
commit 43396401b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,13 +35,13 @@ if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdenti
$rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RustDesk\").Version) $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" Write-Output "RustDesk $rdver ist die neueste Version"
Exit Exit
} }
If (!(Test-Path C:\Temp)) if (!(Test-Path C:\Temp))
{ {
New-Item -ItemType Directory -Force -Path C:\Temp > null New-Item -ItemType Directory -Force -Path C:\Temp > null
} }
@ -70,11 +70,11 @@ while ($arrService.Status -ne 'Running')
} }
cd $env:ProgramFiles\RustDesk\ 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 "..............................................." Write-Output "..............................................."
# Den Wert der ID-Variable anzeigen # Den Wert der ID-Variable anzeigen
@ -85,7 +85,7 @@ Write-Output "Passwort: $rustdesk_pw"
Write-Output "..............................................." Write-Output "..............................................."
``` ```
### Windows batch/cmd ### Windows Batch/CMD
```bat ```bat
@echo off @echo off
@ -95,8 +95,9 @@ setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
set alfanum=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 set alfanum=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
set rustdesk_pw= set rustdesk_pw=
FOR /L %%b IN (1, 1, 12) DO ( for /L %%b in (1, 1, 12) do
SET /A rnd_num=!RANDOM! %% 62 (
set /A rnd_num=!RANDOM! %% 62
for %%c in (!rnd_num!) do set rustdesk_pw=!rustdesk_pw!!alfanum:~%%c,1! 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 timeout /t 20
cd "C:\Program Files\RustDesk\" 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 ............................................... echo ...............................................
REM Den Wert der ID-Variablen ausgeben REM Den Wert der ID-Variablen ausgeben