K1000 Script - Teamviewer Host Assignment
09/10/2018 667 views
I am rolling out Teamviewer corporate across our infrastructure. I have already created the host installation and deployed that. That is all installed and working fine. Anyone that has Teamviewer corporate will know that you then have to run a small script (Teamviewer_assignment.exe) to assign that machine to the central console.
Originally I had this setup and working fine on Windows 7 machines across our infrastructure. I was able to do the host install and the assignment without any issue.
Fast forward a few months and the other side of a complete Windows 10 upgrade, and the host assignment no longer works. I know the reason for this is UAC and the fact that none of our users are local admins (And never will be).
The Teamviewer assignment has to be run as local admin, here is the command:
TeamViewer_Assignment.exe -apitoken *******-*********** -datafile "%ProgramFiles(x86)%\TeamViewer\AssignmentData.json" -allowEasyAccess=true /S
I have tried every way I can think of to get this to work through Kace. The simplest method is ofcourse to use Psexec or Elevate. I've tried every variation of both to try to get it to work and have failed, it just will not run as admin. Even if I supply domain admin details with the PSEXEC command. Can anyone help with this please?