mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-06-20 09:47:45 +02:00
Update _index.de.md
This commit is contained in:
parent
9772ef7525
commit
14786a9964
@ -60,20 +60,31 @@ cd $env:ProgramFiles\RustDesk\
|
||||
.\RustDesk.exe --get-id | out-host
|
||||
```
|
||||
|
||||
## RustDesk Passwort setzen und abfragen (Sammelskript benötigt benutzerdefiniertes Agent-Feld)
|
||||
```ps
|
||||
## Erstellen Sie ein Skript, das als Prüfung verwendet werden soll
|
||||
|
||||
```
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
$confirmation_file = "C:\Program Files\RustDesk\runonce.txt"
|
||||
$confirmation_file = "C:\program files\RustDesk\rdrunonce.txt"
|
||||
|
||||
if ([System.IO.File]::Exists($confirmation_file)) {
|
||||
echo "Bestätigungsdatei ist vorhanden"
|
||||
echo "Confirmation file exists"
|
||||
exit 0
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Confirmation file doesn't exists"
|
||||
exit 1
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## RustDesk Passwort setzen und abfragen (Sammelskript benötigt benutzerdefiniertes Agent-Feld)
|
||||
```
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
$confirmation_file = "C:\program files\RustDesk\rdrunonce.txt"
|
||||
|
||||
net stop rustdesk > null
|
||||
$ProcessActive = Get-Process rustdesk -ErrorAction SilentlyContinue
|
||||
if($ProcessActive -ne $null)
|
||||
@ -88,7 +99,7 @@ Write-Output $rustdesk_pw
|
||||
net start rustdesk > null
|
||||
|
||||
New-Item $confirmation_file > null
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## RustDesk URL-Aktion
|
||||
|
Loading…
x
Reference in New Issue
Block a user