Deploying Teamviewer Host via MDT

This is the current script I have created, after following online threads, as well as TeamViewers support page:

Define Configuration ID

$CONFIGID="configidhere"

Define Assignment ID

$ASSIGNID="assignmentidhere"

msiexec /i "C:\Installers\Teamviewer\TeamViewer_Host.msi" /qn CUSTOMCONFIGID=$CONFIGID
timeout /t 20 /nobreak
chdir 'C:\Program Files\TeamViewer'
cmd.exe /c "TeamViewer.exe" assignment --id $ASSIGNID --device-alias="%COMPUTERNAME%"

As of right now, this script does run, installs TeamViewer, and assigns it to our account properly where we can remote into it via Easy Access.

The issue I am running into, is when using "—device-alias=%COMPUTERNAME%" < this is failing.
It renames the Display Name on the Host itself, but when trying to connect to the computer either via Web, or via Desktop client, when I search the Computer Name, nothing shows up. If I search it by the TeamViewer ID assigned to the client, it is searchable/remoteable that way.

Is there a different set up that needs to happen in this script for it to change the alias to the actual computer name that is given upon deployment?
I have tried just "-alias %COMPUTERNAME%" and other variations, with no luck.

Comments

  • Hi,

    Support told me the following: Version 15.53.6 has a known bug where the alias isnot set correctly or at all.
    If you use this version, you should update to the latest.

    I hope this helps!