macOS

This article describes how to deploy and configure the TeamViewer Host on macOS devices using Relution.


Downloading the TeamViewer client

The macOS installer is downloaded in the TeamViewer portal under Admin Settings → Rollout Configuration. The package includes both the TeamViewer Full Client and the TeamViewer Host. For integration with Relution, only the TeamViewer Host is required.


Distributing the TeamViewer client

In the Relution portal, a new native app is created under Apps → App Store using the previously downloaded PKG file. A detection rule of the type Package Name (the only rule type available for macOS apps) is added, containing the bundle identifier of the TeamViewer Host (com.teamviewer.TeamViewerHost).

The app can be distributed to the macOS devices either through an App compliance configuration or by using the action Deploy Relution store app.


Performing assignment via script

In the Relution portal, a script for the macOS platform is created containing the following command:

Script for TeamViewer Host:

sudo /Applications/TeamViewerHost.app/Contents/Helpers/TeamViewer_Assignment -assignment_id 'YOUR_ASSIGNMENT_ID' -device_alias "${device.name}_${device.serialnumber}"

YOUR_ASSIGNMENT_ID is replaced with the Assignment ID from the TeamViewer portal, received during the setup step →.

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 be displayed in the TeamViewer portal after successful registration.

TeamViewer assignment script

Running the script requires the macOS companion to be enabled (Settings → Relution Client Apps, switch Enable macOS companion). The macOS companion is only deployed on Macs running macOS 12 or later and not on user-enrolled Macs; scripts cannot be executed there. Unlike on Windows, the script cannot be attached to the app. It is therefore executed after the TeamViewer Host has been installed, in one of the following ways:

  • once via the Execute shell script action (see macOS actions →) or on the Scripts → Scripts page via Execute on device,
  • on a schedule via a Script configuration in a macOS policy; this also covers Macs added later.

Once the assignment is complete, the devices should appear in the TeamViewer portal.

How helpful was this article?