mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2024-12-26 17:09:14 +01:00
Update _index.de.md
This commit is contained in:
parent
89313b043b
commit
acac91c5db
@ -19,13 +19,15 @@ $ErrorActionPreference= 'silentlycontinue'
|
|||||||
$rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_}))
|
$rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_}))
|
||||||
|
|
||||||
# Die Konfigurationszeichenkette von Ihrem Webportal abrufen und unten ausfüllen
|
# Die Konfigurationszeichenkette von Ihrem Webportal abrufen und unten ausfüllen
|
||||||
rustdesk_cfg="configstring"
|
$rustdesk_cfg="configstring"
|
||||||
|
|
||||||
############################## Bitte nicht unterhalb dieser Zeile bearbeiten ###################################
|
############################## Bitte nicht unterhalb dieser Zeile bearbeiten ###################################
|
||||||
|
|
||||||
# Wird als Administrator ausgeführt und bleibt im aktuellen Verzeichnis
|
# Wird als Administrator ausgeführt und bleibt im aktuellen Verzeichnis
|
||||||
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
|
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
|
||||||
if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) {
|
{
|
||||||
|
if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000)
|
||||||
|
{
|
||||||
Start-Process PowerShell -Verb RunAs -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command `"cd '$pwd'; & '$PSCommandPath';`"";
|
Start-Process PowerShell -Verb RunAs -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command `"cd '$pwd'; & '$PSCommandPath';`"";
|
||||||
Exit;
|
Exit;
|
||||||
}
|
}
|
||||||
@ -54,6 +56,9 @@ $arrService = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue
|
|||||||
|
|
||||||
if ($arrService -eq $null)
|
if ($arrService -eq $null)
|
||||||
{
|
{
|
||||||
|
Write-Output "Installieren des Dienstes"
|
||||||
|
cd $env:ProgramFiles\RustDesk
|
||||||
|
Start-Process .\rustdesk.exe --install-service -wait -Verbose
|
||||||
Start-Sleep -seconds 20
|
Start-Sleep -seconds 20
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,7 +70,7 @@ while ($arrService.Status -ne 'Running')
|
|||||||
}
|
}
|
||||||
|
|
||||||
cd $env:ProgramFiles\RustDesk\
|
cd $env:ProgramFiles\RustDesk\
|
||||||
$rustdesk_id = (.\RustDesk.exe --get-id | out-host)
|
.\RustDesk.exe --get-id | Write-Output -OutVariable rustdesk_id
|
||||||
|
|
||||||
.\RustDesk.exe --config $rustdesk_cfg
|
.\RustDesk.exe --config $rustdesk_cfg
|
||||||
|
|
||||||
@ -236,7 +241,6 @@ if [ -f /etc/os-release ]; then
|
|||||||
UPSTREAM_ID="$(echo ${ID_LIKE,,} | sed s/\"//g | cut -d' ' -f1)"
|
UPSTREAM_ID="$(echo ${ID_LIKE,,} | sed s/\"//g | cut -d' ' -f1)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
elif type lsb_release >/dev/null 2>&1; then
|
elif type lsb_release >/dev/null 2>&1; then
|
||||||
# linuxbase.org
|
# linuxbase.org
|
||||||
OS=$(lsb_release -si)
|
OS=$(lsb_release -si)
|
||||||
@ -291,7 +295,6 @@ rustdesk --config $rustdesk_cfg
|
|||||||
|
|
||||||
systemctl restart rustdesk
|
systemctl restart rustdesk
|
||||||
|
|
||||||
|
|
||||||
echo "..............................................."
|
echo "..............................................."
|
||||||
# Prüfen, ob die rustdesk_id nicht leer ist
|
# Prüfen, ob die rustdesk_id nicht leer ist
|
||||||
if [ -n "$rustdesk_id" ]; then
|
if [ -n "$rustdesk_id" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user