K1000 Script - Teamviewer Host Assignment
Morning
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?
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
anonymous_9363
6 years ago
Posted by:
SteveSkingle
6 years ago
I have unfortunately. At the moment I am doing it as a basic shell script, running as local system (Have tried with and without domain admin details):
PSEXEC.exe /accepteula -u Domain\user -p "Password"-s TeamViewer_Assignment.exe -apitoken ****-*********** -datafile "%ProgramFiles(x86)%\TeamViewer\AssignmentData.json" -allowEasyAccess=true /S
I have tried wrapping this up in a bat file and just calling that, so "PSEXEC.exe /accepteula -s "NameofBat.bat" and including the bat file as a dependency.