


The throughput in the entire task was way too much due to lack of visual assistance. Set-Asset-Field -Subdomain "demo" -Name "TeamViewer ID" -Value $prop.Previously I used to call him up and guided him on how to fix the issues. $prop = Get-ItemProperty -path HKLM:\SOFTWARE\WOW6432Node\TeamViewer -name "ClientID" #ok, now lets get the teamviewer ID into a variable Msiexec /i TeamViewer_Host.msi CUSTOMCONFIGID=ABC123 APITOKEN=YOUR_BIG_API_TOKEN_HERE /qn # get configid and apitoken from device json, syncro-options #C:\temp\TeamViewer_Assignment.exe -apitoken YOUR_BIG_API_TOKEN_HERE -datafile "C:\Program Files (x86)\TeamViewer\AssignmentData.json" #apitoken comes from the UI when you create a "host" installer package thingy and allow it to assign with the checkbox #for some reason this just puts a copy of the installer in C:\Program Files (x86)\Teamviwer - WAT #msiexec /a TeamViewer_Host-idcABC123.msi /qn

#move C:\temp\TeamViewer_Host.msi C:\temp\TeamViewer_Host-idcABC123.msi #rename the msi file to have -idc$CODE in the name like Set -Asset -Field -Subdomain "demo" -Name "TeamViewer ID" -Value $prop.clientid #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 Msiexec /i TeamViewer_Host.msi CUSTOMCONFIGID =ABC123 APITOKEN =YOUR_BIG_API_TOKEN_HERE /qn #apitoken comes from the 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 # 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. #ADD A REQUIRED-FILE FOR C:\temp\TeamViewer_Host-idcABC123.msi
