====== RDS grace period ====== Tuto pour renouveler la période de grâce des services RDS le temps d'avoir la licence définitive. https://www.hyper-v.io/reset-120-day-rds-grace-period-windows-server-2016-without-gui/ ===== Vérification ===== Commande : wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !="") CALL GetGracePeriodDays Output : Executing (\\BACKUP-PROXY\root\CIMV2\TerminalServices:Win32_TerminalServiceSetting.ServerName="monserveur")->GetGracePeriodDays() Method execution successful. Out Parameters: instance of __PARAMETERS { DaysLeft = 2; ReturnValue = 0; }; :!: ''monserveur'' est à remplacer... par le nom du serveur :-) ===== Réinitialisation ===== La manipulation consiste en la suppression dans le registre de la clé ''L$RTMTIMEBOMB_*'' à l'emplacement suivant :\\ ''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod''.\\ Un redémarrage est nécessaire pour prise en compte. Principales commandes : wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !="") CALL GetGracePeriodDays psexec -s -i PowerShell Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal' 'Server\RCM\GracePeriod Remove-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal' 'Server\RCM\GracePeriod -Name L$RTMTIMEBOMB_* {{tag> Windows RDS RDP wmic PowerShell Registre grace_period }}