Setting pre-defined password Teamviewer
To setup a pre-defined password for unattended access for Teamviewer on your PC, make the following steps:
Open Teamviewer and go to Extras in the menu:
Select Extras > Options > Security
Type in your password you would like for unattended access, Confirm Password, then click on OK