Exemple #1
0
 public Win32_SystemEnclosure(WMIRecord data)
 {
     Manufacturer   = data.Properties["Manufacturer"];
     SerialNumber   = data.Properties["SerialNumber"];
     SMBIOSAssetTag = data.Properties["SMBIOSAssetTag"];
     Version        = data.Properties["Version"];
 }
Exemple #2
0
 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"];
 }
Exemple #3
0
 public Win32_BaseBoard(WMIRecord data)
 {
     Manufacturer = data.Properties["Manufacturer"];
     Product      = data.Properties["Product"];
     SerialNumber = data.Properties["SerialNumber"];
     Version      = data.Properties["Version"];
 }
Exemple #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"];
 }
Exemple #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"];
 }
Exemple #6
0
 public Win32_Product(WMIRecord data)
 {
     HelpLink          = data.Properties["HelpLink"];
     IdentifyingNumber = data.Properties["IdentifyingNumber"];
     InstallDate       = data.Properties["InstallDate"];
     InstallLocation   = data.Properties["InstallLocation"];
     InstallSource     = data.Properties["InstallSource"];
     LocalPackage      = data.Properties["LocalPackage"];
     Name          = data.Properties["Name"];
     PackageCache  = data.Properties["PackageCache"];
     PackageCode   = data.Properties["PackageCode"];
     PackageName   = data.Properties["PackageName"];
     URLInfoAbout  = data.Properties["URLInfoAbout"];
     URLUpdateInfo = data.Properties["URLUpdateInfo"];
     Vendor        = data.Properties["Vendor"];
     Version       = data.Properties["Version"];
 }
Exemple #7
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_BaseBoard(record));
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show($"Querying the WMI Win32_BaseBoard has an exception:\n{ex.Message}", "Exception", MessageBoxButton.OK, MessageBoxImage.Exclamation);
            }
        }
Exemple #8
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"];
 }