Windows
The following guide outlines the steps to configure TeamViewer Host for Windows via Relution, including the distribution of the TeamViewer Host as a Relution Store App and the creation of a script to configure the application.
Downloading the MSI package
First, the appropriate MSI package for the target architecture is downloaded from TeamViewer. The MSI package is available in the TeamViewer portal under Admin Settings → Rollout Configuration.
The downloaded installer includes both the TeamViewer Full Client and the TeamViewer Host. For integration with Relution, only the TeamViewer Host is required. Detailed information on downloading the MSI package can be found in the TeamViewer Documentation →.
Creating the Relution Store App
After the TeamViewer MSI package has been downloaded, a new native app is created in the Relution portal under Apps → App Store using the previously downloaded MSI file. At least one detection rule is required for the app; otherwise it cannot be saved.
Installation and script execution on the devices are handled by the Relution Companion, which must therefore be installed on the target devices: Windows Companion →. Further details can be found under Windows App Installation →.
Creating the assignment script
To configure the TeamViewer Host on the devices, a new script for the Windows platform is created in the Relution portal under Scripts → Scripts.
Depending on the architecture of the target device, one of the following scripts is used:
Script for devices with a 64-bit operating system:
& "C:\Program Files\TeamViewer\TeamViewer.exe" assignment --id $assignmentId --device-alias=${device.name}_${device.serialnumber}
Script for devices with a 32-bit operating system:
& "C:\Program Files (x86)\TeamViewer\TeamViewer.exe" assignment --id $assignmentId --device-alias=${device.name}_${device.serialnumber}
In the Execution section, the variable $assignmentId is set in the Environment variables field to the Assignment ID from the TeamViewer portal, received during the setup step →: $assignmentId='YOUR_ASSIGNMENT_ID'. The content of this field is inserted at the beginning of the script when it is executed.
To establish a link between devices in Relution and TeamViewer, the serial number must be included in the device name. This is ensured by using the placeholder ${device.serialnumber} in the script. The combined name will appear in the TeamViewer portal after successful registration.

Executing the script after installation
To execute the script, the TeamViewer Host MSI app created earlier is opened in Relution. In the Scripts tab, the previously created configuration script is added under Post install scripts. Multiple scripts can be arranged there in their execution order via drag and drop. The tab only appears for classic Windows apps of the own organization and only with read permission for scripts.
The application is installed on the desired Windows devices via an App compliance configuration or the Deploy Relution store app action.
Once the TeamViewer Host has been installed, the script will automatically run. After the configuration is complete, the devices should appear in the TeamViewer portal.