User Tools

Site Tools


informatique:microsoft:rds-grace-period

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
informatique:microsoft:rds-grace-period [2020/05/13 11:48] – created didzkovitchzinformatique:microsoft:rds-grace-period [2020/11/04 09:52] (current) didzkovitchz
Line 1: Line 1:
 ====== RDS grace period ====== ====== RDS grace period ======
- 
  
 Tuto pour renouveler la période de grâce des services RDS le temps d'avoir la licence définitive. 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 :
 +
 +<code>
 +wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !="") CALL GetGracePeriodDays
 +</code>
 +
 +Output :
 +
 +<code>
 +Executing (\\BACKUP-PROXY\root\CIMV2\TerminalServices:Win32_TerminalServiceSetting.ServerName="monserveur")->GetGracePeriodDays()
 +Method execution successful.
 +Out Parameters:
 +instance of __PARAMETERS
 +{
 +        DaysLeft = 2;
 +        ReturnValue = 0;
 +};
 +</code>
 +
 +:!: ''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 :
 +
 +<code>
 +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_*
 +</code>
 +
 +{{tag> Windows RDS RDP wmic PowerShell Registre grace_period }}
informatique/microsoft/rds-grace-period.1589363317.txt.gz · Last modified: 2020/05/13 11:48 by didzkovitchz