Need help assigning machines to a managed group via batch script install.
Currently when rolling out TV to our client machines, we use the following script to auto assign the machine to a group.
msiexec.exe /i C:\temp\TeamViewer_Host.msi /qn APITOKEN=%APITOKEN% ASSIGNMENTOPTIONS="--grant-easy-access --group-id %TeamviewerGroup%"
But we are looking to migrate to managed groups. The previous group id started with g followed by a 9 digit number to identify the group. However the new managed groups use a much longer identifying string and the URL no longer has the g before it. Does anyone know how we can auto assign to the new managed groups via the batch script?
Answers
-
Refer to Assign managed devices via Command Line Interface (CLI) - TeamViewer Support
First, install Teamviewer with
msiexec.exe /i C:\temp\TeamViewer_Host.msi /qn APITOKEN=%APITOKEN% ASSIGNMENTOPTIONS="--grant-easy-access
Then, run Teamviewer.exe with the Assignment --id parameter to define the Managed Group(s) the device should be added to: https://login.teamviewer.com/nav/deploy/assignments
This basically means you should create an assignment for each Managed Group.
0