Déployer l'application de bureau Workspace avec un Devolutions Server préconfiguré

Ce guide couvre les étapes pour déployer l'application de bureau Workspace avec un Devolutions Server préconfiguré. L'installation est gérée via un RMM, suivie d'un script PowerShell pour générer le fichier de configuration nécessaire.

Déployer l'application de bureau Workspace

  1. Installer l'application de bureau Workspace en utilisant un RMM.

  2. Exécuter le script PowerShell suivant après avoir remplacé les variables par vos données.

    param(
        [string]$DVLS_SERVER_URL = "<your-server-url>"
    )
    
    try {
        $appDataPath = [System.Environment]::GetFolderPath('ApplicationData')
        $configDirPath = Join-Path $appDataPath 'net.devolutions\Workspace'
        $configFilePath = Join-Path $configDirPath 'Config.cfg'
        $logPath = Join-Path $configDirPath 'CreateConfigLog.txt'
    
        if (-not (Test-Path $configDirPath)) {
            New-Item -Path $configDirPath -ItemType Directory -Force | Out-Null
        }
    
        Add-Content -Path $logPath -Value "`n[$(Get-Date -Format 'u')] Starting config file creation..."
    
        $configContent = @{
            hubs = @();
            dvls = @(
                @{
                    name = 'Devolutions Server';
                    serverUrl = $DVLS_SERVER_URL;
                    serverVersion = '<your-server-version>';
                }
            );
            preventStartup = $true;
        }
    
        $json = $configContent | ConvertTo-Json -Compress
        Add-Content -Path $logPath -Value "Config content created: $json"
    
        Set-Content -Path $configFilePath -Value $json
        Add-Content -Path $logPath -Value "Config file created successfully at $configFilePath"
    }
    catch {
        Add-Content -Path $logPath -Value "Error creating config file: $_"
        exit 1
    }
    
  3. Le script va générer un fichier de configuration dans le dossier utilisateur AppData. Par exemple :

    C:\Users\USERNAME\AppData\Roaming\net.devolutions\Workspace\Config.cfg

  4. Lancer l'application de bureau Workspace.

  5. Un espace Devolutions Server est créé.

  6. Ouvrir l'espace et s'y connecter.

  7. L'espace est maintenant configuré.

Ajouter une source de données en tant qu'argument MSI

Lors de l'installation de l'application desktop Workspace à l'aide du programme d'installation MSI, pouvoir ajouter une source de données Devolutions Server en la fournissant comme un argument lors de l'installation.

Pour faire cela, inclure la source de données dans votre commande MSI : msiexec /i "installer.msi" DVLS_SERVER_URL=https://dvlsurl.com

 

 

Devolutions Forum logo Donnez-nous vos commentaires