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

TeamViewer - multiple target audiences

Started by SGB_002, February 14, 2024, 06:21:45 PM

Previous topic - Next topic


We have two TeamViewer Host audiences that have custom/different TVOPT configuration files. Is it possible to apply some type of condition check to apply tvopt#1 for audience#1 or tvopt#2 for audience#2? 

I'm working through Scenario #3 on https://patchmypc.com/how-to-customize-teamviewer but having difficulty determining how to configure pre/post settings for two different audiences.

Thanks in advance.

Andrew Jimenez (Patch My PC)


I would use scenario 3, and add a prescript. The prescript would do the following:
  • Determine the audience (not sure how to do this, maybe a registry value on the endpoint)
  • Copy the appropriate audience file to the path: Copy-item $PSScriptroot\Teamviewer_Settings_1.tvopt $PSScriptroot\TeamViewer_Settings.tvopt

When setting up Patch My PC, in Additional files you would have 2 additionalfiles instead of 1:
  • Teamviewer_Settings_1.tvopt
  • Teamviewer_Settings_2.tvopt

Everything else would be the same