You can use below customized commands to get the number of days that are left in your Remote Desktop Services/Terminal Services.
- On Command Prompt (Run as administrator)
wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !=””) CALL GetGracePeriodDays
- On Power Shell
(Invoke-WmiMethod -PATH (gwmi -namespace root\cimv2\terminalservices -class win32_terminalservicesetting).__PATH -name GetGracePeriodDays).daysleft
Leave a Reply