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
7
votes
1 answer

WUApiLib IUpdateInstaller2 yields Error; Some OS updates install others throw HResult -2145124318

Updates are being downloaded from a local server and not from WUS or Microsoft Repositories. Local server is Linux based which host's the contents for each update. I'm not using UpdateDownloader to download from Microsoft Servers, i manually…
Dayan
  • 7,634
  • 11
  • 49
  • 76
6
votes
1 answer

Unable to cast COM object to interface type 'WUApiLib.UpdateSession c#

I am using WUApiLib.dll, and writing a program to detect which updates can be downloaded and installed. Type t = Type.GetTypeFromProgID("Microsoft.Update.Session", "10.81.4.213"); UpdateSession session =…
Dan The Man
  • 1,835
  • 6
  • 30
  • 50
5
votes
1 answer

Using PowerShell, is it possible to call IUpdateInstaller4.Commit without a type library or COM interop DLL?

This question is essentially a follow-up to a 6+ years old question here: IUpdateInstaller4::Commit not found As stated by Hans Passant in that answer, at the time, not only was the type library missing this interface entirely, but others (like…
Dimitri Rodis
  • 142
  • 1
  • 8
5
votes
1 answer

Windows Update API with C# not finding any installed updates

I have a number of Windows 7 PC's that need patching with a particular Windows update, using the Windows Update API in a C# console app. The API needs to search the installed updates and report back if it's already installed and perform the…
SausageFingers
  • 1,796
  • 5
  • 31
  • 52
3
votes
1 answer

Difference between WUA IUpdateSearcher and wmic qfe

I am trying to figure out what are the differences between WUA (Windows Update Agent API) IupdateSearcher and wmic qfe list. When I use WUA IupdateSearcher I get these updates: (New-Object -ComObject…
3
votes
0 answers

Why isn't IUpdateSession::WebProxy working on Windows 10?

I've got some in-house code that performs a Microsoft Update scan using the Windows Update API. Because some of the clients do not have direct internet access, I explicitly set the WebProxy property to point to our local proxy server. During…
Harry Johnston
  • 35,639
  • 6
  • 68
  • 158
3
votes
1 answer

IUpdateInstaller4::Commit not found

I'm trying to use a method of the new WUAPI IUpdateInstaller4 for Windows 10. I found it here: https://msdn.microsoft.com/en-us/library/windows/desktop/mt694207(v=vs.85).aspx But all that i've tried failed: Creation a dynamic object failed with "no…
M. Altmann
  • 726
  • 5
  • 20
3
votes
1 answer

Correct way to stop asynchronous ISearchJob

I am going to use WUA API and begin execution of an asynchronous search for updates in this way: CComPtr iscc_; <<-- Note you need to CreateInstance CComPtr pUpJob_; pUpJob_ = NULL; pUpSearcher_->BeginSearch( …
Space Rabbit
  • 141
  • 2
  • 11
3
votes
1 answer

unexplained differences in wuapi between VBScript and C++

When trying to use wuapi to query Windows 7 Enterprise SP1 for updates, the attached VBScript sample returns different results than the attached C++ sample. The VBScript includes updates for Microsoft Office, which is what I want. During my…
3
votes
1 answer

IUpdateSearcher performance issues

I am using IUpdateSession and IUpdateSearcher in an attempt to get a list of available updates for a Windows system. hr = CoCreateInstance(CLSID_UpdateSession, NULL, CLSCTX_INPROC_SERVER, IID_IUpdateSession, (void**)&pUpdateSession); if (FAILED(hr)…
damadzic
  • 43
  • 3
3
votes
0 answers

How should I implement IDownloadProgressChangedCallback using WIN32OLE?

I'd like to download Windows updates by use of WIN32OLE in Ruby. I'm running into issues knowing which COM object to use in order to get the arguments needed by IUpdateDownloader::BeginDownload . For the time being, I can execute the synchronous…
Ci3
  • 4,632
  • 10
  • 34
  • 44
3
votes
2 answers

Download URL of Microsoft patches

I'm making my own project where I will search for Microsoft updates but will not download/install using WUA API. I will use WUA API only for detection and to get the properties of the individual patches. To make the above scenario work, through…
ajit
  • 79
  • 8
2
votes
1 answer

Get last windows update check C++ wuapi

I'm trying to get the last windows update check using wuapi. I have the following code: VARIANT variant; VariantInit(&variant); IAutomaticUpdatesResults* pAutomaticUpdatedResults = NULL; if…
Callum
  • 52
  • 1
  • 7
2
votes
1 answer

C# WUApiLib know if a windows update needs a restart

I use this code to get pending windows updates and also most of the informations of the update: static List GetPendingUpdates() { var updateSession = new UpdateSession(); var updateSearcher =…
sirzento
  • 537
  • 1
  • 5
  • 23
2
votes
1 answer

WUAPI: List updates for different Windows editions

Using the Windows Update Agent API, one can list Windows updates. E.g.: Set UpdateSession = CreateObject("Microsoft.Update.Session") Set UpdateSearcher = UpdateSession.CreateUpdateSearcher() Set SearchResult = UpdateSearcher.Search("IsInstalled=0…
antonio
  • 10,629
  • 13
  • 68
  • 136
1
2 3 4