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.  

tv14-scripting_alternative.png

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. 

Scrpt_Blog1.png

 

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.

Windows

 

tv14-scripting.png

 

macOS

Script_Blog3.png

 

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!

20 Comments
Henagon

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.

Digon

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.

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

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 :-)

Digon

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).


Digon

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?   

Electron

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

Henagon

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

 

Electron

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.

Henagon

Try this commend like a normal user:

Set-ExecutionPolicy -Scope CurrentUser Unrestricted

Electron

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?

Henagon

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.

Best,

Kerstin

Henagon

"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.

 

Henagon

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