Right-click on the TeamViewer shortcut and go to the “Properties” tab.
In the “Target” field, put a space after the program address and add the line -i 12345678 –Password 11111111 -m Mandatory, where: after the letter i, you need to specify the ID of the remote computer; after the word Password you need to enter a password to allow remote access.
After adding the data, click Apply and OK. You can now connect to another device via TeamViewer without entering a password. As soon as you click on the shortcut of the program, it will open and automatically connect to the remote PC.