Community Manager

Script execution.png

One-click Script Execution and Access in a Remote Session with TeamViewer 14

With its new one-click solution for remote script execution, TeamViewer 14 cuts down on tedious and repetitive tasks, allowing you to standardize and speed up IT support processes. By standardizing and automating your support tasks, remote script execution saves valuable time and can directly result in reduced resolution times.

Providing remote support and maintenance solutions to a large number of users can be a giant task. With so many devices to monitor under time pressure, efficiency is the cornerstone of providing a reliable service. TeamViewer 14’s new remote script execution feature is designed to tackle this issue head-on, giving you and your team the tools to rapidly resolve issues uniformly.

Remote Script Execution Features

TeamViewer 14 allows you to store and manage script files centrally in the Management Console and then execute them during any remote session, from any PC. With these scripts, you can automate a wide variety of computational tasks throughout your network of remote Windows or macOS devices, including (but not limited to):

  • Moving or copying files and folders
  • Reading and adjusting configurations - such as network, firewall or permissions configurations - for individual computers and across a network
  • Installing software
  • Running programs and updates

This new feature eliminates the need to manually upload and execute script files while you are in a remote session: instead, you can access all the scripts in the Management Console via the new script menu – anytime, anywhere. You can now execute numerous tasks included in your scripts with just one click, rather than having to manually repeat the same process in all your sessions.  


How Does it Work?

Storage and management

Upload your choice of scripts to the TeamViewer Management Console and they will be encrypted and stored securely in the cloud. You can also edit your scripts from the Management Console at any time, such as by changing the name, description, or the ‘run as administrator’ field. If a particular script has a command that needs admin rights, checking the ‘run as administrator’ means you will be asked for admin credentials once, right before execution – this can be particularly useful for long-running tasks. TeamViewer 14 supports batch and PowerShell script types on Windows, as well as Shell on macOS. 



Access and execution

When you’re in a remote session, you can now access any of the scripts you’ve uploaded instantly from the new script menu in the client toolbar.








Simply click a script to execute it; the script will be automatically downloaded to the remote machine from the cloud, decrypted, and then run. The process is extremely straightforward and intuitive, but you will need to consider permission handling. Normally, scripts can only be executed if the user on the remote side gives permission once per session, which will not be possible for unattended devices. Fortunately, TeamViewer 14 provides a new ‘Allow script execution without confirmation’ setting to circumvent this issue.

Check out our latest version here: TeamViewer 14 Preview!


Will this feature be available for customers who are on the Business License?

TeamViewer Staff

Yes, @MP-AU you can upload up to 5 scripts with your business license.


Could we "Allow script execution without confirmation" with a TeamViewer Policy?

TeamViewer Staff

Thank you for your feedback, @PD-IT! We will take your request into consideration for our next plannings.

Nice feature. Will TeamViewer make available some usable scripts? We're not all programmers... Thank you.

Without an option for allowing script execution via policies this option is nice, but in my case - useless. So enabling this option via policies is a must :-)


Does TV 13 allow the use of Powershell Scripts?    Not sure if upgrading is really an option at this point. 

TeamViewer Staff

Hi @kdbrich

"Does TV 13 allow the use of Powershell Scripts? Not sure if upgrading is really an option at this point."

With TeamViewer 13 it is only possible to use FileTransfer to copy a script and execute it afterwards on the remote side.

New with TeamViewer 14: you can upload your often used scripts (e.g. PowerShell) only once encrypted in the Management Console and execute them directly in every session (restricted to >= TV 14.0 on the remote side).


So then, I wonder, can one execute those scripts via the TeamViewer api?   If I create an application on my side, can I hit the API to fire off remote scripts on machines?   


Hi TeamViewer staff.

Can you explain this more in detail please ? 

"In addition, you can now execute numerous tasks on multiple machines with just one click, rather than having to manually repeat the same process for all your hardware. For example, previously if you wanted to install software on several machines at once you would have to do it one by one. With TeamViewer 14 you simply have to select the relevant script from the script menu and automation will take care of the rest. "

I have tested the script fonction, it's nice but i have to connect to the computer before execute a script from the cloud.

Is it possible to execute a script on several computers at a time from the Management Console ? I need this feature for distant mass provissioning (ex : install third party software on 100 computers with a few clicks).

Best regards, Nicolas.
OpenXtrem France


Is an open end started Remote Session needed? Or is it possible to run scripts in silent mode like with the Filetransfer?



TeamViewer Staff

@kdbrich: An access via the API is currently not possible. But I will note this feature request and check if it might go to a future release. Thank you for this!

TeamViewer Staff

@oxadmin and @felkr, thank you for your interest in our new feature and for your questions!

The description on the top was somehow confusing - sorry for this, we have corrected it.

Currently it is possible to upload a set of scripts in the Management Console and reuse those within each session. If it's a long running script, you can terminate the session without stopping the execution, of course.

It's not yet available to execute a script without a session in silent, the same for the execution on many devices at the same time. Both are known feature request and we will take your request into consideration for our next plannings.

If you have any further questions, do not hesitate to contact me!

Best, Kerstin



When trying to run execute OneClick Remote Scripts, TeamViewer reports that the script has been exited with code 0. I have set the powershell execution policy to unrestricted. Powershell window opens and exits very quickly. Any help is appreciated.


Try this commend like a normal user:

Set-ExecutionPolicy -Scope CurrentUser Unrestricted


Im getting a script error message when I exit Teamviewer 14

Line: 1

Char: 56

Error: Unable to get property "href" of defined or null reference

Code: 0

How do fix this?


So where is the policy to allow this?...
Useless without it..

TeamViewer Staff

Hi @MikaelH ,

thanks for your feedback.



Actually, since TeamViewer version 14.2 we moved the first permission checkbox to the access controls and with this support a policy also for the script exection (incoming and outgoing connection). Just go in the Management Console to Design & Deploy -> Policies -> Edit or Add and you should be able to see the permission setting for "Execute scripts".MCO_policies.PNG

Please do not forget to change the setting for incoming and outgoing connections (depending on the use case).

Does this solve your question? If you have any more questions or feedback, do not hesitate to answer.




"Full access" won't give you Execute scripts rights...
Changing to Custom and setting "Execute scripts" (Allowed)-Force don't work. (for me.)

Dialog still shows up, policy synced, even reinstalled the OS.



@MikaelH I'm having the exact same issue and I can't seem to find any resolutions on the forums...

Same issue with me, the dialog prevents me from running a script, Execution allowed, TV version 14.4.2669 on both sides.

@Esther  and @Kerstin_PO 

Our company is seeing this issue as well. Full Access still has the script flag set for "After confirmation". Setting to Custom and setting the script flag to "Allow" still gives the prompt that we can't interact. Version 14.5

TeamViewer Staff

Hi @MikaelH , @Dakota-ITech , @LC7 , @Dutch-Valley ,

do you have Custom settings for the access control and "allow" on the client side set for outgoing connections as well as on the remote side for the incomming connections. It's necessary to touch both sides.

If you have set both sides correctly and the script execution still needs the confirmation, could you please provide me the log files from client and remote side (go to Extras > open log files...) in a private message? We will check then if we can find any reason for that.

I'm very sorry for the inconvenience and I hope, that we can solve the issue as soon as possible for you. If you have any further questions, do not hesitate to ask.



@Kerstin_PO Thanks for your prompt reply. After looking at the outboud settings on my PC and the inbound settings on the remote PC, I was able to get this to work. I was missing the part that permissions need to be changed for both sides.

So on the PC giving support the outboud permissions must be set to Custom and have allow set for scripts. On the PC recieving support the inbound permissions need to be set to custom and have allow set for scripts. The second part can be done by policy. Is my wording correct?

TeamViewer Staff

Hi @Dutch-Valley ,

your wording is correct besides outbound is called "Advanced settings for connections to other computers" and inbound is called "Advanced settings for connections to this computers" (at least in the options dialogue, for the Management Console it's "Access Control (incoming connections)" and "Access Control (outgoing connections)").

It's also possible to set the permission for the "outbound" settings via policies, if necessary.