Terminal Server Session denied due to "lack of licensing"

Are you trying to connect to your Terminal Server via an RDP Link or Remote Desktop, and getting denied due to "lack of licensing"?

There are two ways that this can be resolved, and depends on the situation:

1. You really are out of licenses on your server and need to purchase more

a. This can be fixed by purchasing and installing more licenses from Microsoft

2. You have enough Licenses

  1. Go into the Registry Editor (Start -> Run -> "regedit" -> OK)
  2. Browse to HKEY_LOCALMACHINESoftwareMicrosoftMSLicensing
  3. Export (Right Click the folder and select export)  and save the file somewhere safe.
  4. Delete the MSLicensing folder from the registry.
  5. Restart your PC or re-login
  6. Attempt to log in to your Remote Server and it should now work
  7. If not, see #1 above.