Passer au contenu principal
Suivez ce guide pour intégrer d’autres outils dans Gorelo, comme Splashtop, AnyDesk, TeamViewer, etc. Vous pouvez intégrer Gorelo à n’importe quel outil d’accès à distance qui prend en charge le lancement via une URL, comme Splashtop, AnyDesk ou TeamViewer. Cet exemple utilise :
  • Splashtop Business
  • RustDesk
  • Webroot
1

Créez le champ personnalisé d'actif.

  1. Allez à Paramètres > Actifs > Champs personnalisés.
  2. Ajoutez un champ personnalisé avec les détails suivants :
    • Nom : Splashtop SUUID
    • Variable : splashtopSUUID
Image
2

Écrivez le script.

  1. Allez à Scripts.
  2. Créez un script avec les détails suivants :
    • Nom : Store-SplashtopSUUID
    • Contenu :
# 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

Déployez le script via une politique.

  1. Allez à Politiques.
  2. Modifiez une politique existante qui couvre les actifs pour lesquels vous voulez stocker le Splashtop SUUID.
  3. Ajoutez le script Store-SplashtopSUUID et configurez-le pour qu’il se répète quotidiennement à l’heure de votre choix.
  4. Enregistrez et distribuez la politique.
4

Créez le raccourci.

  1. Allez à Raccourcis d’actifs.
  2. Ajoutez un nouveau raccourci avec les détails suivants :
    • Nom : Splashtop
    • URL : t-business://com.splashtop.business?account=&uuid={{$gorelo:asset.splashtopSUUID}}&sessiontype=remote
    • Nom épinglé : Splashtop
      Image 94
      Vous devriez maintenant voir le raccourci SPLASHTOP dans le coin supérieur droit de la page Détail de l’actif. Si le script a renseigné avec succès la variable $gorelo:asset.splashtopSUUID, ce raccourci lancera l’application Splashtop Business.
      Image
Le raccourci n’installe pas Splashtop — un autre script devrait être utilisé pour cela, par exemple :
# 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