You are trying to connect via rdp to windows server 2012 r2 and you receive this error :
An authentication error has occurred.
The function is not supported.
Remote Computer: your hostname
This could be due to CredSSP encryption oracle remediation.
Download and install KB4103725 form Microsoft Update Catalog
After installing you need to restart the server.