跳转到主要内容
按照本指南将 Splashtop、AnyDesk、TeamViewer 等其他工具集成到 Gorelo 中。 你可以将 Gorelo 与任何支持通过 URL 启动的远程访问工具集成,例如 Splashtop、AnyDesk 或 TeamViewer。 此示例使用:
  • Splashtop Business
  • RustDesk
  • Webroot
1

创建自定义资产字段。

  1. 导航到 Settings > Assets > Custom Fields
  2. 添加自定义字段,详细信息如下:
    • NameSplashtop SUUID
    • VariablesplashtopSUUID
Image
2

编写脚本。

  1. 导航到 Scripts
  2. 创建一个脚本,详细信息如下:
    • NameStore-SplashtopSUUID
    • Content
# 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

通过策略部署脚本。

  1. 导航到 Policies
  2. 编辑覆盖你想要存储 Splashtop SUUID 的资产的现有策略。
  3. 添加 Store-SplashtopSUUID 脚本并设置为每天在你偏好的时间重复运行。
  4. 保存分发策略。
4

创建快捷方式。

  1. 导航到 Asset Shortcuts
  2. 添加一个新快捷方式,详细信息如下:
    • NameSplashtop
    • URLt-business://com.splashtop.business?account=&uuid={{$gorelo:asset.splashtopSUUID}}&sessiontype=remote
    • Pinned NameSplashtop
      Image 94
      你现在应该会在资产详情页右上角看到 SPLASHTOP 快捷方式。如果脚本成功填充了 $gorelo:asset.splashtopSUUID 变量,那么此快捷方式将启动 Splashtop Business 应用程序。
      Image
该快捷方式不会安装 Splashtop——需要使用另一个脚本来执行此操作,例如:
# 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