mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-01-24 06:58:35 +01:00
Update _index.de.md
This commit is contained in:
parent
acac91c5db
commit
60d808877a
@ -15,8 +15,9 @@ weight: 100
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
If (!(Test-Path C:\Temp)) {
|
||||
New-Item -ItemType Directory -Force -Path C:\Temp > null
|
||||
if (!(Test-Path C:\Temp))
|
||||
{
|
||||
New-Item -ItemType Directory -Force -Path C:\Temp > null
|
||||
}
|
||||
|
||||
cd C:\Temp
|
||||
@ -51,7 +52,7 @@ Set-Content C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\con
|
||||
net start rustdesk
|
||||
```
|
||||
|
||||
## RustDesk ID abfragen (Sammelskript benötigt benutzerdefiniertes Agent-Feld)
|
||||
## RustDesk-ID abfragen (Sammelskript benötigt benutzerdefiniertes Agent-Feld)
|
||||
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
@ -60,46 +61,45 @@ cd $env:ProgramFiles\RustDesk\
|
||||
.\RustDesk.exe --get-id | out-host
|
||||
```
|
||||
|
||||
## Erstellen Sie ein Skript, das als Prüfung verwendet werden soll
|
||||
## Ein Skript erstellen, das als Prüfung verwendet werden soll
|
||||
|
||||
```
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
$confirmation_file = "C:\program files\RustDesk\rdrunonce.txt"
|
||||
$confirmation_file = "C:\Program Files\RustDesk\rdrunonce.txt"
|
||||
|
||||
if ([System.IO.File]::Exists($confirmation_file)) {
|
||||
echo "Confirmation file exists"
|
||||
exit 0
|
||||
if ([System.IO.File]::Exists($confirmation_file))
|
||||
{
|
||||
echo "Bestätigungsdatei ist vorhanden"
|
||||
exit 0
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Confirmation file doesn't exists"
|
||||
exit 1
|
||||
echo "Bestätigungsdatei ist nicht vorhanden"
|
||||
exit 1
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## RustDesk Passwort setzen und abfragen (Sammelskript benötigt benutzerdefiniertes Agent-Feld)
|
||||
```
|
||||
## RustDesk-Passwort setzen und abfragen (Sammelskript benötigt benutzerdefiniertes Agent-Feld)
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
$confirmation_file = "C:\program files\RustDesk\rdrunonce.txt"
|
||||
$confirmation_file = "C:\Program Files\RustDesk\rdrunonce.txt"
|
||||
|
||||
net stop rustdesk > null
|
||||
$ProcessActive = Get-Process rustdesk -ErrorAction SilentlyContinue
|
||||
if($ProcessActive -ne $null)
|
||||
{
|
||||
stop-process -ProcessName rustdesk -Force
|
||||
stop-process -ProcessName rustdesk -Force
|
||||
}
|
||||
|
||||
$rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_}))
|
||||
$rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_}))
|
||||
Start-Process "$env:ProgramFiles\RustDesk\RustDesk.exe" "--password $rustdesk_pw" -wait
|
||||
Write-Output $rustdesk_pw
|
||||
|
||||
net start rustdesk > null
|
||||
|
||||
New-Item $confirmation_file > null
|
||||
|
||||
New-Item $confirmation_file > null
|
||||
```
|
||||
|
||||
## RustDesk URL-Aktion
|
||||
|
Loading…
Reference in New Issue
Block a user