Monday, December 23, 2013

how to query grace periode days left of terminal services / Abfrage der verbleibenden gratis Tage von Remote Desktop Services

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


C:\Windows\system32>wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !="")
 CALL GetGracePeriodDays
Executing (\\myserver\root\CIMV2\TerminalServices:Win32_TerminalServiceSetting.ServerName="BRIL_INT")->GetGracePeriodDay
s()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
        DaysLeft = 74;
        ReturnValue = 0;
};

No comments: