Username in alias
Hi guys! I've deployed the Teamviewer 15 host in Intune with the following script:
start /wait MSIEXEC.EXE /i "TeamViewer_Host.msi" /qn ADDLOCAL=ALL REMOVE=f.DesktopShortcut CUSTOMCONFIGID=YOUR_CUSTOM_CONFIG_ID
timeout /t 30 /nobreak
"C:\Program Files\TeamViewer\TeamViewer.exe" assignment --id YOUR_ASSIGNMENT_ID --device-alias=%COMPUTERNAME%-%USERNAME%
The script works and there is no problem with the installation. When we check the devices in Teamviewer we see that the name of the laptops are like this: 5CD3298D9F-5CD3298D9F$. I hoped that the username of the user would be in the alias, but it's not. Has anyone else had this problem? And how do I fix this?
Thanks in advance!
Comments
-
I´m facing the same issue. But I found a reddit post that makes sense. Intune like other MDM Solutions run the script as SYSTEM. So %USERNAME% is returning the computername.
https://www.reddit.com/r/teamviewer/comments/mhf99d/comment/gt125z5/
I´m looking for a solution for this as well. I will let you know when I find something.
BR Tim
1