ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How To Reset 120 Day RDS Grace Period on 2012 R2 And 2016 Server

By Vladan SEGET | Last Updated: January 4, 2020

Shares

When you home lab and you don't have Microsoft license for RDS, you have two options. Reinstall the server (redeploy the VM) or cheat a bit. Yes, in fact, there is cool hack which allows you to reset the 120 day grace period on Windows Server 2012 R2 RDS, and we'll show you how. I like doing posts which shows some cool hacks, and this is exactly this kind of post – How To Reset 120 Day RDS Grace Period on 2012 R2 Server.

Normally you would need to activate the RDS/TS CAL License server and point the Server to License server with User/Device License and will resolve the problem. However, we don't want to do that because we have no license from Microsoft, in our lab. (and many other IT pros who test stuff in the lab too).

What we will do is simply reset the default timer which is 120 days grace time, when you first add the RDS role. In fact, you do not need to reboot the server either. Simply log out and back in and the message changes from let's say 54 days left to 120 days left. And that's it.

Note: This tip works also on Windows Server 2016

For every admin who runs homelab or has a cloud lab, this is a must known hack.

Obviously, you won't do this in a production environment, because your production environment is covered with a proper license. Right? Ok, this is clearly for labs, tests, cloud tests etc…

How To Reset 120 Day Grace Period on 2012 R2 Server RDS – The Steps

Step 1: Connect to your RDS Server as an admin and open regedit.

Navigate to the following key:

Server 2012 RDS Reset 120 Day Grace Period

The solution is to delete the REG_BINARY in:

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

It's called a “TimeBomb” … -:)

Note: You must first take an ownership and give admins the full rights.

Like this:

Go to menu Edit > Permissions

Server 2012 RDS Reset 120 Day Grace Period

Once you delete the Registry key you must reboot the host. Some users have reported that when not rebooting the host you will see the message changing, but no connections are possible.

Update: Well, in fact, you can just restart the Service “Remote Desktop Services” which will momentarily disconnect all the active sessions and then after a minute or so you can reconnect to the sessions.

You should see the message changing at the taskbar area….

Note that you have also a possibility to check how many days its left… Go to the command prompt and enter this command (not tested).

wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !=””) CALL GetGracePeriodDays

Apparently, you can delete this key every time it expires ….. indefinitely. Wow. That's good to know too.

This is it my friends. Today's tip for home labs.

Second Tip:

Update: The Microsoft's script was taken down. I have been contacted by someone (look at the comments section) who has published an alternative. Get it here.

Download a PowerShell script from Microsoft allowing you to reset the RDS grace period.

Quote from Microsoft Technet:

The PowerShell script can be used to query and reset terminal server grace period to default 120 days if it is nearing to the end. We often need to deploy Terminal Server (Remote Desktop Session Host in 2012) for testing purposes in development environments allowing more than 2 concurrent Remote Desktop Sessions on it. When it is installed, by default if no RDS or TS Licensing server is specified via either GPO or Registry, it is in default Grace period which is 120 days and it works fine until then.

Once Grace period expires, the server does not allow even a single Remote Desktop session via RDP and all we are left with is to logon to the Console of machine using Physical/Virtual console depending on Physical or Virtual machines or try to get in using mstsc /admin or mstsc /console, then remove the role completely and restart the terminal server (RDS Server) and post that it starts accepting default two RDP sessions.

In the comment section, there was a user who affirmed that he verified it on Windows Server 2016 as well and it works just fine. With that, stay tuned for more.

More from ESX Virtualization:

  • Windows Server 2019 Announced
  • What is Veeam Availability Orchestrator?
  • V2V Migration with VMware – 5 Top Tips
  • VMware vCSA 6.7 Appliance Backup Setup and Schedule
  • Windows Admin Center Update – New Features in latest build
  • Free Up Disk Space On Windows 10 – The New Way

Subscribe to RSS, and social media channels (Twitter, FB, YouTube)

Shares
5/5 - (1 vote)

| Filed Under: Tips, Windows Server 2012 Tagged With: Reset RDS 120 Days grace period, Reset RDS licensing

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. tomuse says

    July 20, 2018 at 12:03 pm

    both Solution are not working under Windows Server 2016, i have tested it in Hyper-V.

    • Rob G says

      May 8, 2019 at 7:36 pm

      Just tested on Windows Server 2016 vMware and did work.

      • Vladan SEGET says

        May 9, 2019 at 9:40 am

        Thanks for sharing your experience Rob.

  2. Vassilis says

    September 18, 2018 at 4:02 pm

    On the contrary!
    The first option, the deletion of the registry key, worked like a charm on a Windows 16 version 1607.

    • Vladan SEGET says

      September 19, 2018 at 1:28 am

      Thanks for confirmation Vassilis. Glad to hear that.

  3. Vassilis says

    September 18, 2018 at 4:10 pm

    On the contrary!
    The deletion of the registry key, worked like a charm on Windows 2016 version 1607.

    Thank you for the tip!

  4. ohlssrog says

    November 1, 2018 at 5:41 pm

    None of the solutions works, 1 windows 2012 R2 with RDSH and connected to remote Windows 2012 R2 RDS license with 250 CAL, have set GPO to point to remote server with per user mode.
    After delete the regkey its back after reboot server and server gets in 120 days licens

  5. Joseph Thekkiniath says

    February 4, 2019 at 1:20 am

    Hello Everyone,

    I am also facing the same issue. The graceperiod in regedit is coming again and again after the restart. I have deleted so many time and restarted the server. no luck!

    Is there any other solution is available? Please help me…

    Thanks
    Jose

  6. herman says

    February 8, 2019 at 7:04 am

    1. Download script from microsoft (https://gallery.technet.microsoft.com/scriptcenter/Reset-Terminal-Server-RDS-44922d91)
    2. Right Click Windows powershell run as administrator
    3. point to directory where your download file is
    4. execute that file (Y and Y)

    5. you will see in tray icon there is pop up saying grace back to 119 days

    • ÖZGÜR GÜNEŞ says

      April 19, 2019 at 11:56 am

      Thank you

    • soner says

      June 23, 2019 at 2:29 am

      thankksss a lot. you are save my life 🙂

  7. Ahsan Reza says

    March 6, 2019 at 6:24 pm

    I followed the first step and it worked like a charm. Just one problem that one of my software doesn’t work. I double click it and it briefly shows a window and disappears. I can see the program running in the processes but i can’t see it opened.

    Please help.

  8. Dan says

    May 10, 2019 at 6:57 pm

    First time I tried it, it did not work. The counter reset but when the original grace period ended I was not able to authenticate to the servers. I resolved it by repeating the process but also opening regedit by right clicking and hitting run as administrator. Just an FYI for anyone who had issues with this process.

    • Vladan SEGET says

      May 11, 2019 at 8:27 am

      Thanks for the feedback Dan, much apreciated.

  9. MS says

    June 25, 2019 at 4:30 pm

    Solution Workes perfectly even on Cloud machine..Thxxx a lot

  10. Rob says

    June 27, 2019 at 11:29 am

    Works like a charm on Server 2019 as well. Thank you very much for the post! This has saved me many hours in my Dev and UAT environments!

  11. Tim says

    July 16, 2019 at 1:43 am

    Great article Vladan and great feedback from the users!

    My question is how would one go about changing the grace period value? I am testing a license server change from Microsoft for customers in workgroups that need to (legally) remove the RDS simultaneous user cap of 2, and I would like to validate the change. However, the grace period as is prohibits an acid test until it expires — hence my goal of setting the grace period to one or zero.

    Thanks,
    Tim

  12. Tom says

    August 7, 2019 at 3:05 pm

    Thank you – lifesaver.

  13. Pablo says

    November 14, 2019 at 5:08 pm

    muchas gracias, me salvo la vida

  14. Prakash Kumar says

    December 10, 2019 at 9:40 am

    Hey, I am the author of the Powershell script that you mentioned in the second option and it seems Microsoft has taken the script down so you might wanna update the content, It is now available at my blog 🙂 https://adminthing.blogspot.com/2016/05/reset-ts-rds-grace-period.html

    • Vladan SEGET says

      December 10, 2019 at 8:53 pm

      Hi Kumar, Thanks for this. I have updated the post.

      • Prakash Kumar says

        January 3, 2020 at 4:45 pm

        Thanks cheers !!

  15. Pete says

    January 19, 2020 at 11:52 am

    Hi

    I use the administrator account and can’t delete the key anymore in the registery or even change persmission, I think microsoft did anything ?

    Help me please.

  16. MMAniac911 says

    January 30, 2020 at 1:15 am

    I can’t delete the Key or Give Admins permissions anymore either. However, it still seems to work, I can log into my WebUI and run apps that I shared…

  17. vassili says

    May 4, 2020 at 6:40 pm

    Hi, did not work on W16, I can’t give admins permissions.
    Any idea ?

    TY.

  18. Shawn says

    July 6, 2020 at 5:29 pm

    Just worked for me. Make sure to use administrator account as I tried with a different account with admin rights and couldnt get it to work. I did have to change permissions as stated above.

    • Vladan SEGET says

      July 7, 2020 at 8:11 am

      Thanks for your feedback, Shawn. Much appreciated by the community.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in