Read this article in Chinese | French | German | Japanese | Spanish
This article applies to TeamViewer users using the TeamViewer full version on Windows.
The full version of TeamViewer on Windows can be run using command line parameters that make it 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, or from a script (for example a .bat file), or from a shortcut on your Desktop or Start menu.
Below you can see an example of a command line in which TeamViewer is connecting to a specific ID, using a pre-set password and connection mode:
C:\Program Files (x86)\TeamViewer\TeamViewer.exe -i 18876347 --Password test -m fileTransfer
-i <ID> (Mandatory) ID of the remote computer
--Password <password> -P <password> (Optional) password of the remote computer – you will be prompted for the password if this is not used
-m fileTransfer -m vpn (Optional) connection mode – this defaults to Remote Control if not used
teamviewer.exe -i <ID> -P <Password>
teamviewer.exe -i <ID> -P <Password> -m fileTransfer
teamviewer.exe -i <ID> -P <Password> -m vpn
Learn more about TeamViewer and Command line parameters here.