Steps to reset 120 Days RDS Grace Period
- Open "Regedit" and go to HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
- Right Click and go to Permission – Advanced – Owner. Change the ownership from Network Service to Administrator Account
- Assign Full Control permission to Administrator
- Delete the item highlighted in RED.
- Reboot the server or restart the Terminal Service (
Restart-Service TermService -force)
-
- The Grace period of RDS server should be reset to default 120 Days now.
(Invoke-WmiMethod -PATH (gwmi -namespace root\cimv2\terminalservices -class win32_terminalservic
esetting).__PATH -name GetGracePeriodDays).daysleft