public Win32_BaseBoard(WMIRecord data)
 {
     Manufacturer = data.Properties["Manufacturer"];
     Product      = data.Properties["Product"];
     SerialNumber = data.Properties["SerialNumber"];
     Version      = data.Properties["Version"];
 }
 public Win32_OperatingSystem(WMIRecord data)
 {
     BootDevice              = data.Properties["BootDevice"];
     BuildNumber             = data.Properties["BuildNumber"];
     BuildType               = data.Properties["BuildType"];
     Caption                 = data.Properties["Caption"];
     CodeSet                 = data.Properties["CodeSet"];
     CountryCode             = data.Properties["CountryCode"];
     CSName                  = data.Properties["CSName"];
     CurrentTimeZone         = data.Properties["CurrentTimeZone"];
     InstallDate             = data.Properties["InstallDate"];
     LastBootUpTime          = data.Properties["LastBootUpTime"];
     Locale                  = data.Properties["Locale"];
     Manufacturer            = data.Properties["Manufacturer"];
     MUILanguages            = data.Properties["MUILanguages"];
     NumberOfUsers           = data.Properties["NumberOfUsers"];
     OperatingSystemSKU      = data.Properties["OperatingSystemSKU"];
     Organization            = data.Properties["Organization"];
     OSArchitecture          = data.Properties["OSArchitecture"];
     OSLanguage              = data.Properties["OSLanguage"];
     OSProductSuite          = data.Properties["OSProductSuite"];
     OSType                  = data.Properties["OSType"];
     OtherTypeDescription    = data.Properties["OtherTypeDescription"];
     RegisteredUser          = data.Properties["RegisteredUser"];
     ServicePackMajorVersion = data.Properties["ServicePackMajorVersion"];
     ServicePackMinorVersion = data.Properties["ServicePackMinorVersion"];
     SystemDevice            = data.Properties["SystemDevice"];
     SystemDirectory         = data.Properties["SystemDirectory"];
     SystemDrive             = data.Properties["SystemDrive"];
     Version                 = data.Properties["Version"];
     WindowsDirectory        = data.Properties["WindowsDirectory"];
 }
 public Win32_SystemEnclosure(WMIRecord data)
 {
     Manufacturer   = data.Properties["Manufacturer"];
     SerialNumber   = data.Properties["SerialNumber"];
     SMBIOSAssetTag = data.Properties["SMBIOSAssetTag"];
     Version        = data.Properties["Version"];
 }
Ejemplo n.º 4
0
 public Win32_BIOS(WMIRecord data)
 {
     Manufacturer = data.Properties["Manufacturer"];
     Name         = data.Properties["Name"];
     ReleaseDate  = data.Properties["ReleaseDate"];
     SerialNumber = data.Properties["SerialNumber"];
     Version      = data.Properties["Version"];
 }
Ejemplo n.º 5
0
 public Win32_Account(WMIRecord data)
 {
     Caption      = data.Properties["Caption"];
     Description  = data.Properties["Description"];
     Disabled     = data.Properties["Disabled"];
     Domain       = data.Properties["Domain"];
     LocalAccount = data.Properties["LocalAccount"];
     Name         = data.Properties["Name"];
     SID          = data.Properties["SID"];
     SIDType      = data.Properties["SIDType"];
     Status       = data.Properties["Status"];
 }
Ejemplo n.º 6
0
        private async void CollectWmiClass(string wmiClass, string members)
        {
            Items.Clear();

            try
            {
                foreach (ManagementObject managementObject in WMIList.GetCollection(wmiClass, members))
                {
                    WMIRecord record = new WMIRecord(members);
                    foreach (PropertyData propertyData in managementObject.Properties)
                    {
                        record.ProcessProperty(propertyData);
                    }
                    Items.Add(new Win32_ComputerSystem(record));
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show($"Querying the WMI Win32_ComputerSystem has an exception:\n{ex.Message}", "Exception", MessageBoxButton.OK, MessageBoxImage.Exclamation);
            }
        }
Ejemplo n.º 7
0
 public Win32_ComputerSystem(WMIRecord data)
 {
     AdminPasswordStatus      = data.Properties["AdminPasswordStatus"];
     AutomaticManagedPagefile = data.Properties["AutomaticManagedPagefile"];
     AutomaticResetBootOption = data.Properties["AutomaticResetBootOption"];
     AutomaticResetCapability = data.Properties["AutomaticResetCapability"];
     Caption     = data.Properties["Caption"];
     DNSHostName = data.Properties["DNSHostName"];
     Domain      = data.Properties["Domain"];
     DomainRole  = data.Properties["DomainRole"];
     EnableDaylightSavingsTime = data.Properties["EnableDaylightSavingsTime"];
     Manufacturer        = data.Properties["Manufacturer"];
     Model               = data.Properties["Model"];
     Name                = data.Properties["Name"];
     PartOfDomain        = data.Properties["PartOfDomain"];
     PrimaryOwnerName    = data.Properties["PrimaryOwnerName"];
     Roles               = data.Properties["Roles"];
     SystemFamily        = data.Properties["SystemFamily"];
     SystemType          = data.Properties["SystemType"];
     TotalPhysicalMemory = data.Properties["TotalPhysicalMemory"];
     UserName            = data.Properties["UserName"];
     Workgroup           = data.Properties["Workgroup"];
 }