Searching for installed Windows updates

I quickly to query for updates to Windows that have already been installed.  I use the Windows Update Agent API to do this, but it takes entirely too long to run.  The query I use within the theIUpdateSearcher.Search (https://msdn.microsoft.com/en-us/library/windows/desktop/aa386526 (v = vs. 85) .aspx method) is as follows:

"IsInstalled = 1 and IsHidden = 0".

This request takes between 15 and 20 minutes to complete.  It's too long for my application.  I was not able to find any useful information as to how I can speed or another alternative.

I noticed that "Control Panel-> programs-> programs and features-> installed updates" is able to get a list of all the updates that are installed in a few seconds.  This was done on 64 bit Windows 7 SP1.

Finally, is there a way I can speed IUpdateSearcher.Search for a list of the installed update?  If not, do you know how Microsoft Gets the list of the installed update in "Control Panel-> programs-> programs and features-> installed updates"?

In addition, the code I use to run my query will find at (I'm doing only part of research then stop at about line 22):

https://msdn.Microsoft.com/en-us/library/Windows/desktop/aa387102 (v = vs. 85) .aspx

I suggest you ask these questions to MSDN or Technet because they are too complex to solve here

TechNet - Microsoft forums

MSDN - MSDN forums - Microsoft.

Choose a more appropriate category to the left where you ask the question.

Tags: Windows

Similar Questions

  • My genuine Window Vista could not search for the new update, or errors are: Code 80073712

    My genuine Window Vista could not search for the new update, or errors are: Code 80073712

    If you forget to say 'thank you '?

    Description of the update of the system for Windows Vista tool
    http://support.Microsoft.com/kb/947821

    0 x 80073712 ERROR_SXS_COMPONENT_STORE_CORRUPT component store is in an inconsistent state.

    TaurArian [MVP] 2005-2010 - Update Services

  • I am trying to install Windows Update and get 800F080D for IE9. Why?

    I am trying to install Windows Update and get 800F080D for IE9.  Why?

    Hi KevinMiller


    1. don't you get the error only during the installation of internet explorer 9?
    2. when exactly you get the error message?
    3. that you get an error when installing other windows updates?

    I suggest you to check if you have all the prerequisites installed for internet explorer 9.

    http://support.Microsoft.com/kb/2399238


    Refer also to the links below and check if you did all requirements before installing internet explorer 9.

    http://support.Microsoft.com/kb/2409098

    http://Windows.Microsoft.com/en-us/Windows7/how-do-i-install-or-uninstall-Internet-Explorer-9

     

    I hope this helps.

  • Why can't I install Windows updates? (Error 80072EFE code)

    I could not install Windows updates for 7 months, as every time I try, I get the same error code.

    My system Details are as follows:

    Windows Vista Home Premium, SP2, 32-bit OS

    Error message reads as follows:

    Windows could not search for new updates.  An error occurred when the new updates for your computer.

    Error (s) found:

    Code 80072EFE Windows Update encountered an unknown error.

    Have tried the 'Try Again' option several times, each time, without success.

    It would really appreciate help with this problem - thanks guys!

    Previously, McAfee SecurityCenter has been installed on my pc, but it has been replaced by McAfee Total Protectiononce the subscription has expired. [It isunderlining] I remember getting a Norton trial software installed at a given moment, but this has been removed to make room for software McAfee, to ensure that there is no conflict between the programs.

    You should have installed McAfee Total Protection before as your McAfee Security Center subscription expires. If you're lucky, the following may solve your problem:

    1. download the Norton Removal Tool, save it to your desktop: ftp://ftp.symantec.com/public/english_us_canada/removal_tools/Norton_Removal_Tool.exe

    1B. download the tool McAfee Consumer Product Removal, save it to your desktop:http://download.mcafee.com/products/licensed/cust_support_patches/MCPR.exe

    2. close all open applications (that is, anything with an icon on the taskbar).

    3. right click on the file that you saved in # 1 above and select run as administrator to run the utility. DO TAP not your keyboard until the race ends, then restart.

    4. now run this triple McAfee fix: http://service.mcafee.com/FAQDocument.aspx?id=TS100507

    [Note that you you already downloaded the removal tool in my # 1 step b above.] You will restart three times: after uninstalling McAfee Total Protection; After you run the removal tool; and then the reinstallation of McAfee Total Protection.]

    5. after reinstalling McAfee Total Protection, manually & repeatedly update the app until you get a prompt "no update more".

    6. for good measure an another Windows update reset (http://support.microsoft.com/kb/971058), restart once again & test.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Cannot install Windows update - error 8007003 - updated fails repeatedley

    Cannot install Windows update - error 8007003 occurs whenever I try to update

    Would have been nice if you included the Windows operating system you are using, but nevertheless (pick that applies to you).

    Windows XP

    You receive an error '0 x 80070002' or '0 x 80070003' code after you download an update from Windows Update, Microsoft Update or Windows Server Update Services
    http://support.Microsoft.com/kb/910336

    When you search for available updates on the update site, you see the Error 80070002 0 x or 0 x 80070003
    http://update.Microsoft.com/windowsupdate/v6/showarticle.aspx?articleid=17&LN=EN&IsMu=false

    Error message when you try to download the updates on the Microsoft Windows Update Web site or from the Microsoft Update on a Windows XP computer's Web site: "0 x 80070003".
    http://support.Microsoft.com/kb/916248

    Vista

    Windows Update error 80070003
    http://windowshelp.Microsoft.com/Windows/en-us/help/dc8636cd-4742-4e4e-B07C-a8cc9c684b261033.mspx

    Description of the update of the system for Windows Vista tool
    http://support.Microsoft.com/kb/947821
    0 X 80070002 ERROR_FILE_NOT_FOUND

    You receive an error '0 x 80070002' or '0 x 80070003' code after you download an update from Windows Update, Microsoft Update or Windows Server Update Services
    http://support.Microsoft.com/kb/910336

    Error message when you try to download updates from Windows Update on a computer that is running Windows Vista: "error 0 x 80070003 the system cannot find the path specified."
    http://support.Microsoft.com/kb/942967

    And here's one for Windows 7

    Windows Update error 80070003
    http://Windows.Microsoft.com/en-us/Windows7/Windows-Update-error-80070003

    TaurArian [MVP] 2005-2010 - Update Services

  • I get the error code 646 when I try to install windows updates.

    I get the error code 646 when I try to install windows updates. I have Windows Vista Home Premium. I disabled my firewall and I still get the error code 646.

    Hello

    Try this 1st to see if it helps, and it should:

    Description of the Patch registration cleanup tool
    http://support.Microsoft.com/kb/976220/

    ------------------------------------------------------

    If necessary :

    Try this - Panel - Windows Updates - on every update that will not be installed - click on the important updates
    or the update itself - double click a view more information (or click top then discovers on the right)

    Those who will take you to a page where you can download the update.

    Or go here and the KBxxxxxx number to download it.

    Download Center - mount the KBxxxxxx.

    Microsoft Download Center
    http://www.Microsoft.com/downloads/en/default.aspx

    Download - SAVE - go to where you put them - click on - RUN AS ADMIN

    Then you can right click on the update in the updates Windows and HIDE.

    If you get an error Installer install this version:

    Windows install 4.5 Redistributable
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

    ----------------------------------------------------

    Then run this:

    How to reset the Windows Update components? -a Mr Fixit
    http://support.Microsoft.com/kb/971058

    Description of the system for Windows Vista, Windows Server 2008, update tool and
    for Windows 7
    http://support.Microsoft.com/kb/947821

    ------------------------------------------------------------
    Because these are all Office updates you might get more information if necessary in the Agency of those groups that
    may have experienced the same problem.

    Office newsgroups
    http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx

    Microsoft.public.office.misc discussions
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Office.misc&cat=en_us_01cb749f-c998-4762-8099-df71793c11c7&lang=en&CR=us

    ------------------------------------------------------------

    If necessary you can incident free get reports however the above should take care of it for you.

    Windows updates - free Incident report

    Go here and click on-> Windows Update fails while searching, downloading or installation of updates
    http://support.Microsoft.com/GP/wusupport#tab3

    The security updates, you can get free support Incident report
    http://www.Microsoft.com/protect/resources/support.aspx

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • I got error code490 when I instal windows update to windows vista Home premium

    490 code

    Hi jas38000,

    A what you try to download the update from the Windows Update Web site or Windows Vista?

    Here are some links that might help you.

    You cannot install some programs or updates

    http://support.Microsoft.com/kb/822798

    Try to reset the Windows Update components. Click on the Fix Me to reset to be done immediately.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/KB971058

    Once the Windows Update components are reset, try to reinstall updates. To do so,

    1. open Windows Update by clicking Start , all programsand then click Windows Update.

    2. click on the option to change the settings in the left navigation bar. You will now be on a screen where you will be able to set up how Windows Vista download and install updates on your computer.

    3. Select updates but let me choose whether to download and install them. When you have finished setting options that you want, press the OK button to save these settings. You will now be at the main screen of Windows Update.

    4. in the left pane, click check for updates, and then wait while Windows searches the latest updates for your computer.

    5. you can then download the updates one or both.

    6. click on install updates to install the updates that are currently selected.

    7. Repeat steps 5 and 6 until you get all the updates you want on your PC.

    For more information about installing the windows updates, see

    Install Windows updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/install-Windows-updates

    Hope this information helps.

    Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think

  • Error code 80070490 installing Windows Update KB975467, Vista.

    I get an error code 80070490 when I try to install Windows Update KB975467. I have Windows XP, SP2.  All other updates seem to work.  As I searched the forum, recommendations on this error differ and do not always seem to work.  I don't have the installation CD (I lost), the laptop came pre-installed by Dell.  I appreciate your help.

    I get an error code 80070490 when I try to install Windows Update KB975467. I have Windows XP, SP2.  All other updates seem to work.  As I searched the forum, recommendations on this error differ and do not always seem to work.  I don't have the installation CD (I lost), the laptop came pre-installed by Dell.  I appreciate your help.

    Try to run the system update (or CheckSUR) tool to see if it can resolve the error.
    If it cannot, you can edit the CheckSUR.log located atCheckSUR.log Windows\Logs\CBS\
    and maybe we can see what content is not present in the operating system.

    If you do not feel like the troubleshooting update installation failure, you can get assistance for installing Microsoft:
    From: MS09-059: vulnerability in the Local Security Authority Subsystem Service could allow denial of service

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy.  If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    For more information about how to contact your local Microsoft subsidiary for support questions with security updates, visit the Microsoft International Support Web site:

    North American customers can also obtain instant access to unlimited support free of charge e-mail or unlimited individual chat support by visiting the Microsoft Web site at the following address:

    MowGreen MVP Data Center Management - update of safety Consumer Services

  • I don't see the desktop icons after installing Windows updates.

    Original title: connection user init failure

    I m using windows 7 pro. After installing the updates, I have problem with the icon on the desktop .i has no icon on the desktop when you connect. get the message the CONNECTION USER INIT FAILED. After pressing ALT + CTRL + delete > taskmanager > run > Desktop Explorer icons is displayed... .i tried many time to solve this problem of the customer service, but they are unable to solve this problem. Please please help

    It is not possible for me to every time the format of the system

    kindly, please give solution.

    My system is connected to the network with 3 PCs and all are licensed copy.

    Hello

    Welcome to the Forums Community Microsoft and thanks for posting the question.

    According to the description, you get an error message "FAILED CONNECTION USER INIT" after installing Windows updates.

    From my research, this problem occurs if the Userinit key in the Windows registry has been changed. For example, this problem may occur if the Userinit key has a value, but no binary data.

    I suggest you follow the steps mentioned below.

    Method 1:

    Step 1: Start the computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Step 2: Check the value and binary Userinit registry data

    Important: The following instructions contain the steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information, view the article in the Microsoft Knowledge Base:

    Back up the registry
    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    a. start Registry Editor. To do this, click Start, type regedit in the search box and press ENTER.

    b. click continue.

    c. Locate and then click the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

    d. in the right pane, right-click Userinit, and then click change.

    e. in the value data box, type hard disk:\Windows\System32\userinit.exe, and then click OK.

    Note: The placeholder of the hard drive refers to the drive on which Windows Vista is installed.

    f. close the registry editor.

    g. restart the computer.

    Method 2:

    Restore the system to an earlier point before installing this application.

    System Restore can return your files system to a point in time before you noticed a problem, without affecting documents, photos, or other personal files. If the system restore does not resolve the problem, you can undo the restore operation and choose a different restore point.

    More information on:

    System Restore: frequently asked questions

    Hope this information helps. Get back to us if you have more queries about Windows.

  • Error 8007000D while trying to install windows update

    Hello, my name is Eyal Brandes, and in recent weeks I can not install updates on my laptop because I always get the error 8007000D. After a search in the internet for the solution, I tried already recommend it in the following links:

    http://Windows.Microsoft.com/en-us/Windows-8/Windows-Update-error-0x8007000d

    http://Windows.Microsoft.com/en-us/Windows/answers?TID=e7ce6bc3-C543-42dB-8607-ad622fdbe47d

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_other-windows_update/error-code-8007000D-installing-Windows-updates/93ffd38b-EBEC-4906-9415-32d97a116cc8

    So far, none of these answers help me.

    I must say that my laptop is relatively new, and I don't know that I've never updated my victory-8 since I installed it first.

    I'll thank you for any help to solve the problem.

    Eyal.

    Hello

    We would like to first apologize for not responding to your concerns in a timely and for the inconvenience that this issue may have caused you.

    You can use the DISM health restore command to solve problem of update of Windows 8. See this Microsoft article:

    System update scan tool corrects errors in Windows Update

    http://support.Microsoft.com/kb/947821/en-us

    I hope this helps. If you need help with Windows, let us know and will be happy to help you.

  • "Configuration of the Windows updates failed. Restoration of the changes. Do not turn off your computer"error when you try to install Windows updates

    Original title: problems with updates

    I tried to install windows updates since the store won't let me update to 8.1 otherwise, but I've been miserably lacking 4 days in a row now. Commissioning Windows Update in Control Panel or the charm of parameters found 133 available updates and informs me that they will install automatically. If I then try to install progress remains at "downloading 0 KB", after a while updates are shown as installation. When the installation is completed I'm prompted to restart my pc. After the reboot if I'm greeted by the "Failure configuring Windows updates" screen for about an hour, then I'm able to reconnect to the desktop computer. I've been searching the forums for similar problems looking for an answer and trying different solutions, such as:

    Stop the update service then renaming or deleting the folder C:\Windows\SoftwareDistribution. No positive results on this one.

    Using SFC and DISM, first came up with my system is clean, the second did find and fix corrupt elements of store, but the problem persists.

    Download the tool for troubleshooting Windows Update from Microsoft page, who reported finding and repairing problens with service, but again without success.

    Reduce the installed updates at a time, in the instance that Windows can't handle most of the many updates at the same time. I tried this and it seemed to go well, but a strange point of interest that is so annoying is that several edits I checked are installing somehow, even if it is the only example that shows the number of updates being installed before restarting. Yet I always comes to the same conclusion. Failure of Windows updates the screen. What should I do?

    Hello

    Please update us with the State of the question. We apologize for the delay in responding

    1. You have a disk to install for Windows 8?
    2. Can you please explain what did you mean by update failed?
    3. Have you an error message when the update failed?

    I propose to perform the refresh once more using the Installation of Windows 8 disc, but before to perform updating please follow the procedure below

    Step 1: Repair of drive

    One of the best ways that you can check the alteration in the hard is to run a check disk on this subject. Please follow the steps below to repair the disk using the disk check.

    1. Open This PC by hitting on any fly in the Dashboard screen, quilting Search (or if you use a mouse, pointing to the top right of the screen, move the mouse down and then clicking search), recording this PC in the search box, and then tapping or clicking on This PC.
    2. Press on and hold or click the drive that you want to repairand then tap or click Properties.
    3. Tap or click the Tools tab, and then, under error-checking, tap or click check.   You may be prompted for an administrator password or to confirm your choice.
    4. Follow the instructions. You may have to restart your PC after that error checking is complete.

    Important: when running chkdsk on the drive hard if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lost.

    Step 2: command tool (DISM) deployment image Service and management.

    By running this command, we can retrieve or modify information in an image. To run the DISM command, please follow the steps below:

    1. Go to the Windows Start menu.
    2. Type cmd on the keyboard.
    3. Right-click on the program from the command prompt and choose Run as administrator.
    4. The command prompt dialog box.
    5. Type the command Dism.exe / online/cleanup-image/Restore health and press ENTER.
    6. Wait for the command to run which can take about 30 minutes.
    7. After running the command, please try to make the backup of the system.

    The above information was hoping to get useful, please return it to us if you need additional assistance.

  • Cannot install Windows updates (has no status) on the computer desktop and laptop

    Desktop               (Purchase date: 13/07/2010)

    Model: Pavilion p6402f or 6402f

    Product: BK275AA #ABL

    Serial No.: {removed privacy}

    OS: Windows 7 Home Premium Service Pack 1 64-bit

    Product ID: {removed privacy}

    Portable               (Purchase date: 14/07/2011)

    Model: Pavilion g6 Notebook PC

    Product: QD317UA #ABC

    Serial No.: {removed privacy}

    OS: Windows 7 Home Premium Service Pack 164-bit

    Product ID: {removed privacy}

    Description of the problem: same problem on the computer desktop and laptop at the same time began: cannot install Windows updates (has no status)

    No hardware changes or software recently made to the system: I followed the usual procedure to install Windows updates.

    Method of connection: wireless

    Technical expertise: intermediate level

    Performed troubleshooting: because the error # 80071 A 90 type indicated by the system, I followed the instructions of Windows Help and Support, for example to run Microsoft Fix it which did not work; a more advanced method has also been used, who recommended to start Windows Update in Mode safe, then open Windows Update and install the updates and then restart normally. At this point, the problem was that any stage of Windows Update was available.

    Hello amib004,

    As much as I know, only Windows Update cannot be run in safe mode. That being said, I saw where install several updates may conflict with each other. Try to disable all updates installation and install the updates failed one at a time.

  • Cannot open iTunes, after installing Windows updates.

    Original title: I Tunes

    Just did a windows update and now ITunes doesn't open

    Hi Sean,

    To provide the proper resolution, I would need more information on your side.

    1. which version of the operating system are you using?

    2. What are the numbers of installed Windows updates Knowledge Base article recently?

    3. that you get an error message when opening ITunes? If Yes, what is the exact error message?

    This problem may occur if the iTunes software is corrupted.

    I suggest you to uninstall and reinstall iTunes and check if it helps.


    Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7

    http://support.Apple.com/kb/HT1923

    Hope this information helps. Please provide the necessary information to help you further, I'll be happy to help you.

  • Error code 80070663 when installing Windows updates

    Original title: error code 80070663

    Error Code 80070663 - repeatedly attempted to install Windows Update & get this error code.

    Hi decg,.

    1 Windows operating system you are using?

    2. which windows update you are installing?

    Method 1:

    You can read the following article and try to reset the Windows Update components and check.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Method 2:

    Step 1:

    You can also view the history of update for updates failed which is causing the problem.

    Check out the link:

    See the Windows updates are installed

    http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed

    Step 2:

    You try to install the updates manually from download from the Microsoft Download Center and check if it helps.

    Check out the link:

    http://www.Microsoft.com/downloads/en/default.aspx

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to install Windows Update manually

    Original title: method to install Microsoft updates

    I have a laptop that has not been used in nearlt per year. So of course, I did not install Microsoft updates.

    I know that there will be a LARGE number of installed updates. What would be the best method to install?

    Install a little at a time? How can I download only a few at a time?

    Hello

    You can change Windows update settings to allow you to choose the updates, and install them in groups. Follow the link given below for more information.

    Change how Windows installs or notifies you of updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-how-Windows-installs-or-notifies-you-about-updates

    See also:

    Updates: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/updates-frequently-asked-questions

    Install Windows updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/install-Windows-updates

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • How can I find my stolen iphone

    Dear team Greetings from cloudy Ulaanbaatar. I stole my iphone 6 May 22, 2016. The serial number of my iphone: C39NRQ2TG5MN IMEI/MEID: 356982061351077 How can I find my phone? Please notify regarding Erkhembaatar.B

  • How can I get an identity to be assigned automatically to a message?

    Is it possible to get an identity specific to assign as a principal to a (outgoing) message automatically, dependant on the record where I am from enamel? I realize it's me, but I always forget to change identity in the drop-down list area. Thank you

  • Uninstallation of Halo and try to reinstall

    I tried to uninstall Halo Combat Evolved for PC and there is I can't delete items delete or copy (when I try to reinstall) and I'd love to play the game and install it properly on my computer, but cannot me.

  • Compaq CQ42-102TU

    Hi all.. I have a problem wif this laptop... the problem is, I can not install driver bluetooth on this laptop... when tried to install it, he said, cannot detect any bluetooth device... How can I solve this?

  • Explorer uses excessive memory/crashes when viewing film thumdnails

    on Vista, explore crashes when opening a file containing movies if you want to view thumbnails (film)