No remote Desktop Licence Server available on RD Session Host server 2012 (event id 1130)

Error in RDS 2012:

EventID: 1130
Source: TerminalServices-RemoteConnectionManager
The remote session was disconnected because there are no Remote Desktop client access licenses available for this computer. Please contact the server administrator.

The solution was to delete the REG_BINARY in

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod

(take ownership to be able to delete this key.)

Restart all Remote Dekstop services.