Pular para o conteúdo principal
Siga este guia para integrar outras ferramentas ao Gorelo, como Splashtop, AnyDesk, TeamViewer etc. Você pode integrar o Gorelo a qualquer ferramenta de acesso remoto que permita ser iniciada por uma URL, como Splashtop, AnyDesk ou TeamViewer. Este exemplo usa:
  • Splashtop Business
  • RustDesk
  • Webroot
1

Crie o campo personalizado de ativo.

  1. Acesse Configurações > Ativos > Campos personalizados.
  2. Adicione um campo personalizado com os seguintes detalhes:
    • Nome: Splashtop SUUID
    • Variável: splashtopSUUID
Image
2

Escreva o script.

  1. Acesse Scripts.
  2. Crie um script com os seguintes detalhes:
    • Nome: Store-SplashtopSUUID
    • Conteúdo:
# Define registry path for 64-bit machines
$regPath64 = "HKLM:\SOFTWARE\WOW6432Node\Splashtop Inc.\Splashtop Remote Server"

# Define the value name for the SUUID
$regValue = "SUUID"

# Try to retrieve the SUUID from the 64-bit registry
if (Test-Path $regPath64) {
    try {
        $suuid = Get-ItemProperty -Path $regPath64 -Name $regValue -ErrorAction Stop
        
        # Check if the SUUID value is present
        if ($suuid.$regValue) {
            $suuidValue = $suuid.$regValue
            Write-Output "Splashtop SUUID: $suuidValue"
            
            # Write the SUUID to the Gorelo custom field
            GoreloAction -SetCustomField -Name 'asset.splashtopSUUID' -Value $suuidValue
        } else {
            Write-Output "SUUID not found in the registry."
        }
    } catch {
        Write-Output "Error retrieving SUUID from the registry: $_"
    }
} else {
    Write-Output "Splashtop registry not found."
}
3

Implante o script via uma política.

  1. Acesse Políticas.
  2. Edite uma política existente que cubra os ativos para os quais deseja armazenar o SUUID do Splashtop.
  3. Adicione o script Store-SplashtopSUUID e configure-o para repetir diariamente no horário desejado.
  4. Salve e distribua a política.
4

Crie o atalho.

  1. Acesse Atalhos de Ativo.
  2. Adicione um novo atalho com os seguintes detalhes:
    • Nome: Splashtop
    • URL: t-business://com.splashtop.business?account=&uuid={{$gorelo:asset.splashtopSUUID}}&sessiontype=remote
    • Nome fixado: Splashtop
      Image 94
      Você deve ver agora o atalho SPLASHTOP no canto superior direito da página de detalhes do ativo. Se o script preencheu com sucesso a variável $gorelo:asset.splashtopSUUID, esse atalho abrirá o aplicativo Splashtop Business.
      Image
O atalho não instala o Splashtop — outro script seria necessário para isso, por exemplo:
# Installs Splashtop Streamer using the installer MSI uploaded to $gorelo:file.splashtopInstaller
# Runs a silent install using the 12-digit deployment key at $gorelo:client.splashtopKey

#Check for presence of SplashtopKey
if ([string]::IsNullOrEmpty($gorelo:client.splashtopKey)) {
Write-Output "No SplashTop Key stored for this client. Automatic installation cancelled."
GoreloAction -Alert -Severity 3 -Name "No Splashtop Key stored for this client" -Description "No Splashtop Key is stored in the client custom field so the automatic installation has been cancelled" -Suppress 0
} else {
Write-Output "Splashtop Key Found: " $gorelo:client.splashtopKey
Write-Output "Installer Path: " $gorelo:file.splashtopInstaller
}

#Install Splashtop
msiexec /i $gorelo:file.splashtopInstaller USERINFO="dcode=$gorelo:client.splashtopKey,hidewindow=1,confirm_d=0" /qn /norestart