How to check remaining days of Microsoft RDS CAL grace period
You need to know how many days are remaining in your Microsoft RDS (Remote Desktop Services) installation where you are still making use of the grace period.
Solution
Section titled “Solution”Windows command line
Section titled “Windows command line”Execute the following command in an elevated window.
wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !="") CALL GetGracePeriodDaysPowershell
Section titled “Powershell”Execute the following command in an elevated window.
(Invoke-WmiMethod -PATH (gwmi -namespace root\cimv2\terminalservices -class win32_terminalservicesetting).__PATH -name GetGracePeriodDays).daysleft