-
-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
165 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# TeamViewer | ||
|
||
## TeamViewer 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** = `TeamViewerClientID`</br> | ||
**Field Type** = `Text`</br> | ||
|
||
![Service Name](images/3rdparty_teamviewer1.png) | ||
|
||
While in Global Settings go to **URL ACTIONS** | ||
|
||
Add a URL Action</br> | ||
**Name** = `TeamViewer Control`</br> | ||
**Description** = `Connect to a Team Viewer Session`</br> | ||
**URL Pattern** = | ||
|
||
```html | ||
https://start.teamviewer.com/device/{{agent.TeamViewerClientID}}/authorization/password/mode/control | ||
``` | ||
|
||
|
||
Navigate to an agent with TeamViewer running (or apply using **Settings > Automation Manager**).</br> | ||
Go to Tasks.</br> | ||
Add Task</br> | ||
**Select Script** = `TeamViewer - Get ClientID for client` (this is a builtin script from script library)</br> | ||
**Descriptive name of task** = `Collects the ClientID for TeamViewer.`</br> | ||
**Collector Task** = `CHECKED`</br> | ||
**Custom Field to update** = `TeamViewerClientID`</br> | ||
|
||
![Service Name](images/3rdparty_teamviewer2.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 > TeamViewer Control** | ||
|
||
It launch the session and possibly promt for password in TeamViewer. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Retrieve Teamviewer ID from TRMM agent. This tests versions 6+ known Registry Paths. | ||
|
||
$TeamViewerVersionsNums = @('6', '7', '8', '9', '') | ||
$RegPaths = @('HKLM:\SOFTWARE\TeamViewer', 'HKLM:\SOFTWARE\Wow6432Node\TeamViewer') | ||
$Paths = @(foreach ($TeamViewerVersionsNum in $TeamViewerVersionsNums) { | ||
foreach ($RegPath in $RegPaths) { | ||
$RegPath + $TeamViewerVersionsNum | ||
} | ||
}) | ||
|
||
foreach ($Path in $Paths) { | ||
If (Test-Path $Path) { | ||
$GoodPath = $Path | ||
} | ||
} | ||
|
||
foreach ($FullPath in $GoodPath) { | ||
If ($null -ne (Get-Item -Path $FullPath).GetValue('ClientID')) { | ||
$TeamViewerID = (Get-Item -Path $FullPath).GetValue('ClientID') | ||
$ErrorActionPreference = 'silentlycontinue' | ||
|
||
} | ||
|
||
|
||
|
||
} | ||
Write-Output $TeamViewerID | ||
|
||
|
||
Exit $LASTEXITCODE |
This file was deleted.
Oops, something went wrong.