
string computer = ".";
ManagementScope scope = new ManagementScope(@"\" + computer + @"rootcimv2");
ManagementObjectSearcher quickFixes = new ManagementObjectSearcher(scope, new ObjectQuery("Select * from Win32_QuickFixEngineering"));
foreach (ManagementObject quickFix in quickFixes.Get())
{
listBox1.Items.Add("----------------------------------------------------------------");
listBox1.Items.Add(string.Format("Description: {0}", quickFix["Description"]));
listBox1.Items.Add("ID: "+quickFix["HotFixId"]);
listBox1.Items.Add("Caption: " + quickFix["Caption"]);
listBox1.Items.Add("InstalledBy: " + quickFix["InstalledBy"]);
listBox1.Items.Add("InstalledOn: " + quickFix["InstalledOn"].ToString().Replace("/","."));
}
Результат:
0.00 (0%) 0 votes










