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.
-
Installer l'application de bureau Workspace en utilisant un RMM.
-
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 }
-
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
-
Lancer l'application de bureau Workspace.
-
Un espace Devolutions Server est créé.
-
Ouvrir l'espace et s'y connecter.
-
L'espace est maintenant configuré.
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