Add AnyDesk script collector and Integration Docs.

This commit is contained in:
Samuel Meuchel 2021-06-30 17:33:48 -05:00
parent 0e77d575c4
commit e2413f1af2
6 changed files with 76 additions and 0 deletions

View File

@ -192,6 +192,18 @@
"shell": "powershell",
"category": "TRMM (Win):Collectors"
},
{
"guid": "e43081d4-6f71-4ce3-881a-22da749f7a57",
"filename": "Win_AnyDesk_Get_Anynet_ID.ps1",
"submittedBy": "https://github.com/meuchels",
"name": "AnyDesk - Get AnyNetID for client",
"description": "Returns AnyNetID for client - Use with Custom Fields for later use. ",
"args": [
"-serviceName {{client.ScreenConnectService}}"
],
"shell": "powershell",
"category": "TRMM (Win):Collectors"
},
{
"guid": "95a2ee6f-b89b-4551-856e-3081b041caa7",
"filename": "Win_Power_Profile_Reset_High_Performance_to_Defaults.ps1",

View File

@ -0,0 +1,47 @@
# AnyDesk
## AnyDesk Integration
!!!info
You can setup a full automation policy to collect the machine GUID but this example will collect from just one agent for testing purposes.
From the UI go to **Settings > Global Settings > CUSTOM FIELDS > Agents**
Add Custom Field</br>
**Target** = `Agent`</br>
**Name** = `AnyNetID`</br>
**Field Type** = `Text`</br>
![Service Name](images/3rdparty_anydesk1.png)
While in Global Settings go to **URL ACTIONS**
Add a URL Action</br>
**Name** = `AnyDesk Control`</br>
**Description** = `Connect to a AnyDesk Session`</br>
**URL Pattern** =
```html
anydesk:{{agent.AnyNetID}}
```
Navigate to an agent with AnyDesk running (or apply using **Settings > Automation Manager**).</br>
Go to Tasks.</br>
Add Task</br>
**Select Script** = `AnyDesk - Get AnyNetID for client` (this is a builtin script from script library)</br>
**Descriptive name of task** = `Collects the AnyNetID for AnyDesk.`</br>
**Collector Task** = `CHECKED`</br>
**Custom Field to update** = `AnyNetID`</br>
![Service Name](images/3rdparty_anydesk2.png)
Click **Next**</br>
Check **Manual**</br>
Click **Add Task**
Right click on the newly created task and click **Run Task Now**.
Give it a second to execute then right click the agent that you are working with and go to **Run URL Action > AnyDesk Control**
It launch the session in AnyDesk.

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -32,6 +32,8 @@ nav:
- MeshCentral Integration: mesh_integration.md
- 3rd Party Integrations:
- "Connectwise Control / Screenconnect": 3rdparty_screenconnect.md
- "TeamViewer" : 3rdparty_teamviewer.md
- "AnyDesk" : 3rdparty_anydesk.md
- Contributing:
- "Contributing to Docs": contributing.md
- "Contributing using VSCode": contributing_using_vscode.md

View File

@ -0,0 +1,15 @@
$Paths = @($Env:APPDATA, $Env:ProgramData, $Env:ALLUSERSPROFILE)
foreach ($Path in $Paths) {
If (Test-Path $Path\AnyDesk) {
$GoodPath = $Path
}
}
$ConfigPath = $GoodPath + "\AnyDesk\system.conf"
$ResultsIdSearch = Select-String -Path $ConfigPath -Pattern ad.anynet.id
$Result = @($ResultsIdSearch -split '=')
$Result[1]