Username in alias

Options

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