: Use these commands to gain permission to modify the system file: takeown /F c:\Windows\System32\termsrv.dll /A
Download the script from the official fabianosrc/TermsrvPatcher repository.
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM" /v GracePeriod /t REG_DWORD /d 1 /f