Share via

Cannot remote on to VM

Gareth Hamann 1 Reputation point
2021-12-06T19:11:44.017+00:00

Hi All,

Having issues remoting on to on VM in our azure resource.

Receive this message :

Your session ended because the remote PC isn't licensed to accept remote connections. Ask your admin or tech support for help.

Error code: 0x2056
Extended error code: 0x257
Activity ID: {db4d21ab-cd07-43b8-bfd7-b9fe8beb0000}

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,537 Reputation points Moderator
    2021-12-07T01:15:30.367+00:00

    @Gareth Hamann

    The issue could be expired internal certificate.

    Below are few suggestions you can check to solve the issue:

    This has to be renewed, and if you are using a RDWebClient new cert has to be imported into the RDWebClient also.
    In PowerShell elevated mode, load RDWebClientManagement-module and try running these commands to change the Certificate in RDWebClient.

    “Import-Module -Name RDWebClientManagement”
    “Get-RDWebClientBrokerCert”
    “Import-RDWebClientBrokerCert <Path of Certtificate file> .crt or .cer”
    “Get-RDWebClientBrokerCert“

    Reset the Remote Desktop Services configuration, refer this document for steps.

    Another similar issue: https://learn.microsoft.com/en-us/answers/questions/85776/receiving-34couldn39t-connect34-for-all-previously.html

    Hope this helps.
    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.