Required Files: None
This is for the silent rollout of TeamViewer and will run the assignment tool for you. This only works on the Corporate edition with the MSI. There is a TeamViewer integration that basically does the same thing, go to the App Center to see it – /apps/teamviewer.
#ADD A REQUIRED-FILE FOR C:\temp\TeamViewer_Host-idcABC123.msi Import-Module $env:SyncroModule ################################## OLD - FOR TV 13.1 VERSION ################################# #rename the msi file to have -idc$CODE in the name like; #move C:\temp\TeamViewer_Host.msi C:\temp\TeamViewer_Host-idcABC123.msi #cd C:\temp #msiexec /a TeamViewer_Host-idcABC123.msi /qn #for some reason this just puts a copy of the installer in C:\Program Files (x86)\Teamviwer - WAT #cd "C:\Program Files (x86)\TeamViewer" #./TeamViewer_Host-idcABC123.msi /q #start-sleep -seconds 120 #ok, now it should be installed. Lets assign it. #apitoken comes from the teamviewer.com UI when you create a "host" installer package thingy and allow it to assign with the checkbox #C:\temp\TeamViewer_Assignment.exe -apitoken YOUR_BIG_API_TOKEN_HERE -datafile "C:\Program Files (x86)\TeamViewer\AssignmentData.json" ################################# NEW FOR TV 13.2 ################################# # get configid and apitoken from device json, syncro-options cd C:\temp msiexec /i TeamViewer_Host.msi CUSTOMCONFIGID=ABC123 APITOKEN=YOUR_BIG_API_TOKEN_HERE /qn #ok, now lets get the teamviewer ID into a variable $prop = Get-ItemProperty -path HKLM:\SOFTWARE\WOW6432Node\TeamViewer -name "ClientID" write-host "Here is the client ID" write-host $prop.clientid Set-Asset-Field -Subdomain "demo" -Name "TeamViewer ID" -Value $prop.clientid |