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