Scripting Question

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?
0 Comments   [ + ] Show comments


All Answers

Have you tried running it with PSExec executing as the local System account, i.e. with the -s argument?
Answered 09/10/2018 by: VBScab
Red Belt

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. 
Answered 09/10/2018 by: SteveSkingle
White Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ