• Welcome to Support Forum: Get Support for Patch My PC Products and Services.
 

TeamViewer assignment Post-Install

Started by Ramon, November 26, 2024, 11:25:52 AM

Previous topic - Next topic

Ramon

Hello all,

Silly question, but when deploying TeamViewer updates/install via Publisher, we have in the past had a simple Powershell script to call up the application, then assign it to our account.

As of a few updates ago, the same script appears to fail to run. Tested on a few different machines and looking at the ScriptRunner log it would say the PS1 script ran, but the app is not set for Easy Access as intended.


Yesterday I noticed the Cloud version can deploy TeamViewer 15 and I also added the Powershell script to the Post Install section, tested on another machine and same thing, it doesn't assign to our account.

Is anybody else experiencing this or have a solution?

s.gewillig

Hi,
I'm looking for the same thing.
In the additional arguments I put in the following:

CUSTOMCONFIGID=#configIDofTV# APITOKEN=#OUR-API-TOKEN# ASSIGNMENTOPTIONS= --grant-easy-access --group #GROUPNAME#

But here as well it doe not seem to work

nithin

Hello Ramon,

I am sorry that the script stopped working. Could you please let me know if the script works as intended when you install it with PSexec? Additionally, have there been any changes to the script's signature? I have provided a link with all the supported arguments by TeamViewer:

https://www.teamviewer.com/en/global/support/knowledge-base/teamviewer-remote/deployment/mass-deployment-user-guide/deploy-teamviewer-host-or-full-client-9-10/?coupon=CMP-PR-BF24

I have also shared a script below from my colleague that might be worth checking out for configuring the assignment:

https://github.com/MichaelEscamilla/Teamviewer-Public/tree/main/Assignment/TeamViewer%20Remote





Ramon

Thanks for this Nithin.

I was rattling my brain looking over the scriptrunner log and one thing that kept standing out to me was the amount of time it said it took for Team Viewer to install, it just didn't sound right to me

"finished with Elapsed Time: 00 minutes 09 seconds 292 milliseconds"

I just kept thinking that the installation takes much longer than 9 seconds to complete

The content of the PS1 scripts is as follows


$assignmentID = 'Our API key'
start-sleep -seconds 10
start-process -filepath "C:\Program Files\teamviewer\teamviewer.exe" -argumentlist "assignment --id $assignmentID"

We can manually run this Powershell script and devices would join so we know the script works outside of Patch My PC


Two days ago after posting this thread, I decided to up the amount of seconds from 10 to 120
All of a sudden the next 10 test machines are installing and assigning successfully. Seems Patch My PC was trying to run the script too soon, making it run 2 minutes after installation gives TeamViewer enough time to complete properly then can be assigned

nithin

Hi Ramon,

I'm glad to hear that the issue has been resolved.

The "Recommended scripts" provided by TeamViewer include a break time of 30 seconds.

Feel free to reach out to us if you have any further issues.