Using Teamviewer with RDP in Windows you may receive the following error when an RDP session is closed or minimised.
The screen cannot be captured at the moment. This is probably due to fast user switching or a disconnected/minimized remote desktop session
To get around this make sure Teamviewer is installed then:
1. Get the server ID from either Help > About Teamviewer or click on the bulb icon next to the ID
2. Set the unattended password in Extras > Options > Security.
Tested as of Teamviewer 11