Teamviewer trouble, screen cannot be captured, fast user switching error message

Setting up Teamviewer for unattended access on Windows Server 2012 R2 but having trouble getting it work without first logging on to the server in some other way?

If you get the error “The screen cannot be captured at the moment. This is probably due to fast user switching or a disconnected/minimized Remote Desktop session.”, like in this picture:

chances are that you use a “User ID” instead of a “Server ID” when you connect with TeamViewer to the server. I’ve written on Superuser about this teamviewer problem. It took me some (unnecessary) time to figure out, so I hope this tip saves you some of your time.