Skip to main content

Knowledge Base

Command line parameters

Last Modified 21 июл. 2026 г.

The full version of TeamViewer on Windows can run command line parameters that initiate a session to a remote device using a pre-set ID, password, and connection mode.

You can use these parameters to run TeamViewer from the Command Prompt, a script (for example, a .bat file), or a shortcut on your Desktop or Start menu. 

How to use Command-line parameters

Parameters with and without a value

Note: Some parameters are only available with the TeamViewer (Classic) version 13.2.

There are two types of parameters, with a value and without a value.

Example for a parameter without a value: 

TeamViewer.exe --noInstallation

Example for a parameter with a value: 

TeamViewer.exe --id 123456789

In most cases, only one value is expected; if multiple are given, only the first one is used.

If the value of a parameter contains a space, the value must be enclosed in quotation marks.

Notes:

  • A long parameter is called like this (with two “-“ -> “--“):
  • TeamViewer.exe --minimize
    
  • If the parameter has a short variant, it can also be called with only one “-“:
  • TeamViewer.exe -n
    
  • However, using “--n” is also possible on some platforms. Multiple parameters can be combined in one call, and parameters are case-sensitive.