Posted by Oto
Henagon

TeamViewer assigment

I just want upgrade from v 12. to 14. I wondering if is automatic assigment PC to contact list by script is same

I use :

TeamViewer_Assignment.exe -apitoken xxx -datafile "${ProgramFiles}\TeamViewer\AssignmentData.json" -allowEasyAccess=true -devicealias="${COMPUTERNAME}" -wait=10 -verbose

Will be working also in version 14? batch file I run by GPO. Thanks

3 Replies
3 Replies
Posted by TeamViewer Staff
TeamViewer Staff

Re: TeamViewer assigment

Hi @Oto

I assume that you want to upgrade several devices from v12 to v14 because you are using a batch file executed by GPO. In this case, I would recommend uninstalling the existing v12 installations and performing a reinstallation including assignment via MSI. This article should help you with this process.

The command you are using no longer works with v14 when installing with msi.

I hope this helps you. Regards,
Sven

Posted by Oto
Henagon

Re: TeamViewer assigment

Thanks,,

I have v12 on 200PC and all are in contact list

What is best process to migrate to v14:

1 Uninstall v12 by GPO script
msiexec.exe /uninstall "Path\To\TeamViewer_Host.msi"

2 Install v 14 by GPO script
msiexec.exe /i "Path\To\TeamViewer_Host.msi" /qn APITOKEN=<YOUR_APITOKEN> ASSIGNMENTOPTIONS="--alias %COMPUTERNAME%"
Ho to combine with IMPORTREGFILE=1 and  CUSTOMCONFIGID=<YOUR_CUSTOMCONFIG_ID>

Thanks for recomendation. Oto

 

Posted by TeamViewer Staff
TeamViewer Staff

Re: TeamViewer assigment

Hi @Oto

the process could be as follows:

  1. Export a TeamViewer options reg file with your preferred options (from an existing installation)
  2. Uninstall your v12 via a GPO script including this command: 
    msiexec.exe /uninstall "Path\To\TeamViewer_Host.msi" /qn
    (/qn forces a silent uninstallation)
  3. Copy your CUSTOMCONFIGID and your APITOKEN from the Management Console
  4. Download the v14 TeamViewer_host.msi
  5. Put the options reg file into the same directory as the TeamViewer_host.msi
  6. Execute the installtion of v14 via a GPO script including this command:
    msiexec.exe /i "Path\To\TeamViewer_Host.msi" /qn APITOKEN=<YOUR_APITOKEN> IMPORTREGFILE=1 CUSTOMCONFIGID=<YOUR_CUSTOMCONFIG_ID> ASSIGNMENTOPTIONS="--alias %COMPUTERNAME%" /lvx msi.log
     (/lvx msi.log is just for creating a msi log in case errors occur)

Regards

Sven