Resetting the RDS 120-Day Grace Period (For Lab Environments)
If you’ve ever spun up a Windows Server in a lab and enabled Remote Desktop Services, you’ve probably met the clock: the 120-day RDS grace period. It’s generous at first… until it expires and politely (or not so politely) blocks new connections. For learning, testing, or home lab setups, there’s a little-known reset mechanism tucked away in the registry. Microsoft calls it a grace period — the registry rather cheekily calls it a “TimeBomb.” 😄 Let’s walk through what it is, why it happens, and how people commonly reset it in non-production environments.
What Is the RDS Grace Period? When Remote Desktop Services is enabled on Windows Server 2012 R2 or 2016, the system allows 120 days of use without a configured RDS licensing server. This is designed to give administrators time to set licensing up properly. Once that period expires, new RDP connections are blocked until licensing is configured — or the grace period data is reset.
Where the Timer Lives The grace period countdown is stored in the Windows Registry at:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
This registry key contains the data Windows uses to track how many days remain.
The Basic Idea In short:
-
The system reads the GracePeriod registry key to determine remaining time
-
Deleting that key resets the countdown
-
Windows recreates it automatically after a restart
That’s why the key is often jokingly referred to as a “TimeBomb” — once it’s gone, the clock starts fresh.
Important Permissions Note By default, this registry key is protected. Before it can be deleted, you must:
-
Take ownership of the
GracePeriodkey -
Grant Administrators full control
This is done through the registry editor:
-
Right-click the key
-
Choose Permissions
-
Adjust ownership and access rights
Without this step, Windows won’t allow the key to be removed.
Restart Required (One Way or Another) After deleting the registry key, Windows must reload the Remote Desktop Services state. You can do this in one of two ways:
-
Reboot the server (the safest and most reliable option), or
-
Restart the “Remote Desktop Services” service, which briefly disconnects active sessions but avoids a full reboot
If neither is done, the warning message may change, but connections will still fail — which can be confusing if you’re troubleshooting in a hurry.
Checking Remaining Grace Period Days There’s also a command-line method that may show how many days are left in the grace period:
wmic /namespace:\\root\CIMV2\TerminalServicesPATH Win32_TerminalServiceSettingWHERE (__CLASS != "")CALL GetGracePeriodDays
Results can vary by version and configuration, but it’s a useful curiosity check in lab setups.
One Final Reality Check Yes — the registry key can technically be deleted every time the grace period expires, and Windows will happily reset it again. That’s fine for home labs, testing, and learning environments. For production systems, though, proper RDS licensing is still the right answer. This trick is best treated as a lab convenience, not a long-term solution.
Wrapping Up If you’re experimenting with Windows Server, RDS, or virtual lab environments, resetting the RDS grace period can save time and frustration. Just remember what it’s for: learning, testing, and tinkering. Today’s tip, friends — happy labbing. 👩💻👨💻