public void Search(EntityInventoryCollection collection)
 {
     using (var wmi = new WMI <EntityComputerSystemInventory>(new EntityComputerSystemInventory()))
     {
         collection.ComputerSystem = wmi.Execute();
     }
 }
 public void Search(EntityInventoryCollection collection)
 {
     using (var wmi = new WMI <EntityHardDrive>(new EntityHardDrive()))
     {
         collection.HardDrives = wmi.GetObjectList();
     }
 }
Example #3
0
 public void Search(EntityInventoryCollection collection)
 {
     using (var wmi = new WMI <EntitySoftwareInventory>(new EntitySoftwareInventory()))
     {
         collection.Software = wmi.GetObjectList();
     }
 }
 public void Search(EntityInventoryCollection collection)
 {
     using (var wmi = new WMI <EntityPrinter>(new EntityPrinter()))
     {
         collection.Printers = wmi.GetObjectList();
     }
 }
Example #5
0
 public void Search(EntityInventoryCollection collection)
 {
     using (var wmi = new WMI <EntityBiosInventory>(new EntityBiosInventory()))
     {
         collection.Bios = wmi.Execute();
     }
 }
Example #6
0
 public void Search(EntityInventoryCollection collection)
 {
     using (var wmi = new WMI <EntityProcessorInventory>(new EntityProcessorInventory()))
     {
         collection.Processor = wmi.Execute();
     }
 }