Fuente:  http://www.nosolohacking.info/como-resetear-los-dias-de-prueba-de-terminal-services-rds/





wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !="") CALL GetGracePeriodDays




(Invoke-WmiMethod -Path (gwmi -Namespace root\cimv2\terminalservices -Class win32_terminalservicesetting).__PATH -Name GetGracePeriodDays).daysleft





$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting

$obj.GetSpecifiedLicenseServerList()



$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting

$obj.SetSpecifiedLicenseServerList("SERVIDOR")



Para seguir el tutorial abrir el video en youtube:


https://youtu.be/liVRapFvzFU