日期:2014-05-17 浏览次数:20858 次
SelectQuery query = new SelectQuery("Select * From Win32_ServerSession");
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
foreach (ManagementObject managementObject in searcher.Get())
{
managementObject.Delete();
}