Beispiel #1
0
 internal static IEnumerable <ManagementObject> GetVirtualMachines(this ManagementScope scope)
 {
     return(scope.GetComputerSystems().Where(x => x["Description"].ToString().ToLower().Contains("virtual machine")));
 }