Skip to content

Instantly share code, notes, and snippets.

@D4R4
Created June 22, 2019 06:36
Show Gist options
  • Save D4R4/d82153547e23840abe304f7c3c1f571b to your computer and use it in GitHub Desktop.
Save D4R4/d82153547e23840abe304f7c3c1f571b to your computer and use it in GitHub Desktop.
Extend windows RDP graceperiod after 120 day trial expiration
hkey_local_machine\system\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
-> Change permission to full control
--> delete the key inside
@echo off
REG DELETE \\ServerName\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod /v L$RTMTIMEBOMB_1320153D-8DA3-4e8e-B27B-0D888223A588
net stop termservice
timeout 30
net start termservice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment