Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to RDP into windows server on GCE : No remote desktop license servers available

I have windows server machine on GCE.Whenever I try to take remote or RDP into machine it is showing

The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license. Please contact the server administrator

I have reset the machine but didn't work. The solutions that I got on the net needs access to the machine first, but I am not able to access the machine. Here is a link http://www.dell.com/support/Article/us/en/04/635765/EN to troubleshoot this, but I am not able to access machine as the machine is on google server.

like image 670
Sunil Garg Avatar asked Nov 16 '15 08:11

Sunil Garg


People also ask

How do I fix No Remote Desktop license servers available to provide a license?

To resolve this problem, back up and then remove the X509 Certificate registry keys, restart the computer, and then reactivate the RD Licensing server.

How do I fix a RDP license issue?

You can do this in the menu: "Search" on the toolbar => gpedit. msc => Computer Configuration => Administrative Templates => Windows Components => Remote Desktop Services => Remote Desktop Session Host => Licensing => Set the remote desktop licensing mode.


3 Answers

In my case license has been expired. But I was able to take remote in admin mode. Use the command in Run to take remote in admin mode

mstsc /admin 

Then I added new license to continue remote service. For more detail on remote desktop licensing check out the link https://technet.microsoft.com/en-us/library/cc732684.aspx

like image 106
Sunil Garg Avatar answered Oct 15 '22 12:10

Sunil Garg


According to this post the solution is to delete the following key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod

I Followed Sunil Garg's instructions:

mstsc /admin 

to remote into the server.

Then I deleted the key. Please note you must run regedit as System user to delete the key. Use the RunAsSystem tool to achieve this

like image 30
Asaad Avatar answered Oct 15 '22 12:10

Asaad


This problem made by some kind of caching of remote desktop licensing in clients you can solve this by remove the bellow key in registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing

It's much easier to make a reg file and run it so .

  1. Make a empty text file
  2. Name it "mypatch.reg" or "mypatch.reg"
  3. Put bellow text in it and save it

     Windows Registry Editor Version 5.00
    
     [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing]
    
  4. Run it by dubble click on file!

It should remove the key.

like image 1
MSS Avatar answered Oct 15 '22 12:10

MSS