none
为什么Win7系统下读取系统补丁读不全呢? RRS feed

  • 问题

  •         static void Main(string[] args)
            {
                var searchOS = new ManagementObjectSearcher("Select * from Win32_QuickFixEngineering");
                List<string> hotfixid = new List<string>();
                foreach (var item in searchOS.Get())
                {
                    //Console.WriteLine(item["HotFixID"].ToString());
                    hotfixid.Add(item["HotFixID"].ToString());
                }
                for (int i = 0; i < hotfixid.Count; i++)
                {
                    Console.WriteLine("第:"+i+" "+hotfixid[i]);
                }
                Console.WriteLine("总数" + searchOS.Get().Count);
                Console.ReadLine();
            }
    我这样去写读取系统补丁,为什么Win7读取不全呢?明明是400个,读到的只有399个?
    2019年2月1日 13:35

全部回复

  • 你好,

    根据你的代码,我在Windows 7 的系统上测试了一下,我这边是可以读全,不知道你那边漏掉的是哪个补丁呢?还有你的Windows 7 是哪一个版本?

    Best regards,

    Zhanglong


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2019年2月4日 5:39
    版主
  • KB30144这个补丁读不出来,Win7  6.1.7601  X86
    2019年2月14日 8:26
  • 你好,

    我通过Bing 搜索,但是我没有找到这个KB30144 的补丁,你可以提供一下这个补丁的官方下载地址吗?

    Best regards,

    Zhanglong


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2019年2月20日 2:27
    版主