I discovered the issue for me. Teamviewer did this when my remote computer was awake but the user profile was either locked or logged off. In this case, teamviewer can only work when the user is logged on. A solution to this would be to setup Unattended access. With this, teamviewer is able to display the Windows Log on screen or lock screen that enables you to enter the local machine credentials (if user is logged off or locked) and then control it.
... View more