mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-01-26 16:08:35 +01:00
rm -rf tactical
This commit is contained in:
parent
bfcc2af422
commit
da467f1729
@ -1,8 +0,0 @@
|
||||
---
|
||||
title: Integration von Drittanbietern
|
||||
weight: 400
|
||||
---
|
||||
|
||||
RustDesk wurde erfolgreich in eine Reihe von anderen Projekten integriert, einige davon finden Sie unten. Wenn Ihr Projekt mit RustDesk integriert werden soll oder Sie RustDesk bereits integriert haben, lassen Sie es uns bitte via [E-Mail](mailto:support@rustdesk.com) wissen, damit wir unsere Dokumente ergänzen können.
|
||||
|
||||
{{% children depth="3" showhidden="true" %}}
|
@ -1,8 +0,0 @@
|
||||
---
|
||||
title: 3rd Party Integrations
|
||||
weight: 400
|
||||
---
|
||||
|
||||
RustDesk has successfully been integrated into a number of other projects, please see some below. If your project wants to integrate with RustDesk or you have already integrated RustDesk please let us know via [email](mailto:support@rustdesk.com) and we can add to our docs.
|
||||
|
||||
{{% children depth="3" showhidden="true" %}}
|
@ -1,114 +0,0 @@
|
||||
---
|
||||
title: Tactical RMM
|
||||
weight: 100
|
||||
---
|
||||
|
||||
### Um Tactical RMM mit RustDesk zu verwenden, müssen Sie Folgendes tun
|
||||
|
||||
1. Installieren Sie Ihren eigenen Tactical RMM-Server, folgen Sie den [offiziellen Dokumenten](https://docs.tacticalrmm.com/) und öffnen Sie Ports.
|
||||
2. Erstellen Sie die folgenden PowerShell-Skripte.
|
||||
3. Erstellen Sie eine [URL-Aktion](https://docs.tacticalrmm.com/functions/url_actions/).
|
||||
4. Erstellen Sie [benutzerdefinierte Felder](https://docs.tacticalrmm.com/functions/custom_fields/) für die RustDesk-ID und das Passwort.
|
||||
5. Erstellen Sie [Sammelaufgaben](https://docs.tacticalrmm.com/functions/automated_tasks/#collector-tasks).
|
||||
|
||||
### Installationsskript zum Ersetzen von IPADDRESS und KEY
|
||||
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
if (!(Test-Path C:\Temp))
|
||||
{
|
||||
New-Item -ItemType Directory -Force -Path C:\Temp > null
|
||||
}
|
||||
|
||||
cd C:\Temp
|
||||
|
||||
Invoke-WebRequest "https://github.com/rustdesk/rustdesk/releases/download/1.2.3/rustdesk-1.2.3-x86_64.exe" -Outfile "rustdesk.exe"
|
||||
Start-Process .\rustdesk.exe --silent-install -wait
|
||||
|
||||
$ServiceName = 'Rustdesk'
|
||||
$arrService = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue
|
||||
|
||||
if ($arrService -eq $null)
|
||||
{
|
||||
Start-Sleep -seconds 20
|
||||
}
|
||||
|
||||
while ($arrService.Status -ne 'Running')
|
||||
{
|
||||
Start-Service $ServiceName
|
||||
Start-Sleep -seconds 5
|
||||
$arrService.Refresh()
|
||||
}
|
||||
net stop rustdesk
|
||||
|
||||
$username = ((Get-WMIObject -ClassName Win32_ComputerSystem).Username).Split('\')[1]
|
||||
Remove-Item C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml
|
||||
New-Item C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml
|
||||
Set-Content C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml "rendezvous_server = 'IPADDRESS' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = 'IPADDRESS'`nkey = 'KEY='`nrelay-server = 'IPADDRESS'`napi-server = 'https://IPADDRESS'"
|
||||
Remove-Item C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml
|
||||
New-Item C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml
|
||||
Set-Content C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml "rendezvous_server = 'IPADDRESS' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = 'IPADDRESS'`nkey = 'KEY='`nrelay-server = 'IPADDRESS'`napi-server = 'https://IPADDRESS'"
|
||||
|
||||
net start rustdesk
|
||||
```
|
||||
|
||||
### RustDesk-ID abfragen (Sammelskript benötigt benutzerdefiniertes Agent-Feld)
|
||||
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
cd $env:ProgramFiles\RustDesk\
|
||||
.\rustdesk.exe --get-id | out-host
|
||||
```
|
||||
|
||||
### Ein Skript erstellen, das als Prüfung verwendet werden soll
|
||||
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
$confirmation_file = "C:\Program Files\RustDesk\rdrunonce.txt"
|
||||
|
||||
if ([System.IO.File]::Exists($confirmation_file))
|
||||
{
|
||||
echo "Bestätigungsdatei ist vorhanden"
|
||||
exit 0
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Bestätigungsdatei ist nicht vorhanden"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
### RustDesk-Passwort setzen und abfragen (Sammelskript benötigt benutzerdefiniertes Agent-Feld)
|
||||
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
$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
|
||||
}
|
||||
|
||||
$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
|
||||
```
|
||||
|
||||
## RustDesk URL-Aktion
|
||||
```
|
||||
rustdesk://connection/new/{{agent.rustdeskid}}?password={{agent.rustdeskpwd}}
|
||||
```
|
||||
|
||||
## Benutzerdefinierte Agent-Felder hinzufügen
|
||||
`rustdeskid Type = Text` </br>
|
||||
`rustdeskpwd Type = Text`
|
@ -1,114 +0,0 @@
|
||||
---
|
||||
title: Tactical RMM
|
||||
weight: 100
|
||||
---
|
||||
|
||||
### To Use Tactical RMM with RustDesk, you must do the following
|
||||
|
||||
1. Install your own Tactical RMM Server, following their [official docs](https://docs.tacticalrmm.com/) and open ports.
|
||||
2. Create the following scripts (all are PowerShell).
|
||||
3. Create a [URL Action](https://docs.tacticalrmm.com/functions/url_actions/).
|
||||
4. Create [custom fields](https://docs.tacticalrmm.com/functions/custom_fields/) for the RustDesk ID and password.
|
||||
5. Create [collector tasks](https://docs.tacticalrmm.com/functions/automated_tasks/#collector-tasks).
|
||||
|
||||
### Install Script Replace IPADDRESS and KEY
|
||||
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
if (!(Test-Path C:\Temp))
|
||||
{
|
||||
New-Item -ItemType Directory -Force -Path C:\Temp > null
|
||||
}
|
||||
|
||||
cd C:\Temp
|
||||
|
||||
Invoke-WebRequest "https://github.com/rustdesk/rustdesk/releases/download/1.2.6/rustdesk-1.2.6-x86_64.exe" -Outfile "rustdesk.exe"
|
||||
Start-Process .\rustdesk.exe --silent-install -wait
|
||||
|
||||
$ServiceName = 'Rustdesk'
|
||||
$arrService = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue
|
||||
|
||||
if ($arrService -eq $null)
|
||||
{
|
||||
Start-Sleep -seconds 20
|
||||
}
|
||||
|
||||
while ($arrService.Status -ne 'Running')
|
||||
{
|
||||
Start-Service $ServiceName
|
||||
Start-Sleep -seconds 5
|
||||
$arrService.Refresh()
|
||||
}
|
||||
net stop rustdesk
|
||||
|
||||
$username = ((Get-WMIObject -ClassName Win32_ComputerSystem).Username).Split('\')[1]
|
||||
Remove-Item C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml
|
||||
New-Item C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml
|
||||
Set-Content C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml "rendezvous_server = 'IPADDRESS' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = 'IPADDRESS'`nkey = 'KEY='`nrelay-server = 'IPADDRESS'`napi-server = 'https://IPADDRESS'"
|
||||
Remove-Item C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml
|
||||
New-Item C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml
|
||||
Set-Content C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml "rendezvous_server = 'IPADDRESS' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = 'IPADDRESS'`nkey = 'KEY='`nrelay-server = 'IPADDRESS'`napi-server = 'https://IPADDRESS'"
|
||||
|
||||
net start rustdesk
|
||||
```
|
||||
|
||||
### RustDesk Get ID (Collector Script needs Custom Agent Field)
|
||||
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
cd $env:ProgramFiles\RustDesk\
|
||||
.\rustdesk.exe --get-id | out-host
|
||||
```
|
||||
|
||||
### Create Script to be used as a Check
|
||||
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
$confirmation_file = "C:\Program Files\RustDesk\rdrunonce.txt"
|
||||
|
||||
if ([System.IO.File]::Exists($confirmation_file))
|
||||
{
|
||||
echo "Confirmation file exists"
|
||||
exit 0
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Confirmation file doesn't exists"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
### RustDesk Set and Get Password (Collector Script needs Custom Agent Field) to run on Check Failure
|
||||
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
$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
|
||||
}
|
||||
|
||||
$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
|
||||
```
|
||||
|
||||
### RustDesk URL Action
|
||||
```
|
||||
rustdesk://connection/new/{{agent.rustdeskid}}?password={{agent.rustdeskpwd}}
|
||||
```
|
||||
|
||||
### Add Custom Agent Fields
|
||||
`rustdeskid Type = Text` </br>
|
||||
`rustdeskpwd Type = Text`
|
Loading…
Reference in New Issue
Block a user