Questions tagged [wuapi]

Windows Update Agent API

Wuapi is a Windows Update Client API from Microsoft Corporation belonging to Microsoft® Windows® Operating System.

47 questions
2
votes
1 answer

How does CreateUpdateDownloader know to download what files?

How does CreateUpdateDownloader download files? I ask because my system is missing 4 KBs. I get the title of the 4 missing KBs from iterating through an update collection in my script. When I assign that collection to a CreateUpdateDownloader…
MGoBlue93
  • 644
  • 2
  • 14
  • 31
2
votes
0 answers

What needs to be enable for remote WUApiLib

What needs to be enabled on the remote PC so that I could use WUApiLib remotely? I have this code that returns me the error 80070005 Type t = Type.GetTypeFromProgID("Microsoft.Update.Session", "192.168.1.14"); UpdateSession uSession =…
Michal
  • 803
  • 2
  • 9
  • 26
2
votes
1 answer

Check for WSUS server using Windows Update Agent API

I'm trying to determine whether or not WSUS manages the current machine by using the Windows Update Agent API. Currently, my code looks at all the services registered with Windows Update Agent. private static bool…
Liang Wei
  • 21
  • 3
2
votes
2 answers

Windows Update - Wanting to use Online not WSUS

I am trying to adjust this code so it forces the Windows Update search to check online from Microsoft rather than the local WSUS server. This code works fine if I run it when I am outside my company network, but I want to run from the company…
Steve Dorr
  • 136
  • 9
1
vote
2 answers

Wuapi.dll Search() not returning all updates

Testing the functions of wuapi.dll I noticed that some updates are not listed in the results (obviously because they are visible from the update manager). Code used(c#): public ISearchResult CheckUpdates() { IUpdateSearcher…
t.mod
  • 11
  • 1
1
vote
1 answer

C# UpdateSession behind proxy (WUApi.dll)

Hi I'm trying to make a C# app that can check for missing windows updates. I can get my code to work when a user is logged in as that seems to sort out my proxy authentication issues but I want it to run on startup, before a user logs in. Below is…
Matt M
  • 375
  • 1
  • 5
  • 14
1
vote
1 answer

C# Wuapi BeginInstall callback gets called with wrong information in EventArgs

I'm writing a program that will make windows update availabe in an offline environment via wsusscn2.cab. As I want feedback on how the update is going im using the asynchronous BeginInstall method. The problem I'm seeing is that the Callback is…
Magnus
  • 11
  • 2
1
vote
0 answers

WUAPI: Feature Updates

I'm trying to install a feature update using WUAPI. I believe I need IUpdateInstaller4::Commit method but I cannot make it work. Without the commit method the feature update stays in the processing state after the installation. I already tried few…
1
vote
0 answers

Include error when trying to include

Recently I tried to create tool using Windows Update Agent API in C++. The problem is, even include of the wuapi.h header file causes problems on my machine. It keeps saying, the header file could not be found. #include int main(int…
mfedor
  • 11
  • 1
1
vote
1 answer

Is there a method to download all windows updates?

I want to create an application, which should be used to update a computer without internet connection. To solve the problem the software first downloads the current wsusscn2.cab from Microsoft. Then the application should download all possible…
Kluddizz
  • 703
  • 3
  • 8
1
vote
2 answers

How to use IUpdate5 from wuapi.h

I want to use IUpdate5 interface but I could not find anyway to instantiate it. I am currently using IUpdate, it works flawlessly, but how can I use versioned versions of those interfaces such as IUpdateSession3, IUpdateSearcher3, IUpdate4, IUpdate5…
calynr
  • 1,264
  • 1
  • 11
  • 23
1
vote
1 answer

Installing Windows Updates offline using WUApiLib

I am looking for some help with automating the installation of Windows Updates by using the wsusscn2.cab file available from the Microsoft website. The setup I am trying to implement this onto is a bit of a strange one which is why I think I cannot…
fir3storm
  • 11
  • 2
1
vote
1 answer

Determine Windows Update classification

From the Windows Update COM Library (WUAPILib) I have access to the IUpdate interface however I don't see of any way to use to get the update classification (Critical, Important, Optional) to group updates in the same way like the Windows Update UI…
Paul
  • 42
  • 5
  • 19
1
vote
1 answer

C# - Getting the full picture from WUAPI

I am trying to collect an accurate picture of Windows Updates, specifically KB installations, on a number of different machines. I've tried a number of different pieces of code that I've found scattered about, but I still cannot seem to create an…
1
vote
0 answers

How to catch Windows Update events?

I have found a lot of guides how to work and use WUAPI in order to download and install updates using my own program. But I always wanted to know - is there a way to use default Windows Update application? For example, I launched installation of…
Sergey Dudkin
  • 169
  • 1
  • 10