I have tried various options to install TeamViewer using MSI with the option to use the computername, and none have worked.
Here are the command that should work according to TeamViewer:
msiexec.exe /i "\\MyDomain\MyPath\TeamViewer_Host.msi" /qn APITOKEN=<YOUR_APITOKEN> ASSIGNMENTOPTIONS="--alias %COMPUTERNAME%"
This command works:
msiexec.exe /i "\\MyDomain\MyPath\TeamViewer_Host.msi" /qn APITOKEN=<YOUR_APITOKEN> ASSIGNMENTOPTIONS="grant-easy-access"
I have also tried many variations with quotes. It seems to be an issue with the the space after "--alias ".
Any help would be appreciated.