Questions tagged [windows-update]

Windows Update (WU), a service offered by Microsoft, provides updates for the Microsoft Windows operating system and its installed components, including Internet Explorer. This tag should be used exclusively for programming questions, not general issues with Windows updates or the Windows operating system; these questions should be directed to Super User instead.

Windows Update includes the following:

  • The Windows Update (WU) Service offered by Microsoft, which provides updates for Microsoft Windows operating systems.
  • The Windows Update Agent (WUA) which perform the communications with WU, searching for updates and install updates.
  • Windows Automatic Updates (AU) which schedule automatic, notifications, downloads, and installations of Updates. "Windows Update and Automatic Updates are two separate components designed to work together to keep Windows secure. " See, How to configure Automatic Updates and Difference between Windows Update and Automatic Updates
  • The WUA API, which enables programmers and administrators to manage WU updates on the local system. See WUA API reference.

Open Issue

  • Should WSUS question be covered under this tag?
409 questions
8
votes
1 answer

Download Windows Updates Using C#

Is there any way to download Windows updates programmatically from within a C# application? I want to manage the installation of updates from within my application.
ahmadali shafiee
  • 4,350
  • 12
  • 56
  • 91
8
votes
1 answer

Value cannot be null. Parameter name: userContext in Visual Studio 2017

I am facing a strange issue that, getting a message as "Value can not be null. Parameter name is userContext" while clicking on Extensions and updates under tools menu. Please do let me know what is the workaround for this issue. Thank you.
8
votes
1 answer

Did VB 6/.NET interop recently get broken by a Windows update?

Recently a VB 6 application using .NET 1.1/2.0 components stopped working on my companies XP machines. The IT department was installing Windows patches at the time, so I'm wondering if anyone has heard of an update breaking VB 6/.NET interop?
Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447
8
votes
1 answer

How to open .msu extension file?

I have downloaded a file WINDOWS POWERSHELL that has an .msu extension how do i install this package in my winxp professional sp3 OS.
Michael
  • 13,950
  • 57
  • 145
  • 288
7
votes
3 answers

Check when last check for Windows Updates was performed

How can I check WHEN last check for windows updates was performed - in code (c#/.Net)? Not WHICH updates are or are not installed, but WHEN last check was performed? Best of all would be a complete history of when checks for windows updates had…
Kjensen
  • 12,447
  • 36
  • 109
  • 171
7
votes
3 answers

Using WUA remotely using C#

I am trying to connect to a remote machine and determine if there are any Windows Updates to be installed using C# and WUApiLib. It seems pretty straightforward, however I cannot find out how to actually connect to the remote…
Brian
  • 117
  • 1
  • 1
  • 7
7
votes
4 answers

How can I programmatically get the title of Microsoft knowledge base article by KB number?

I'm trying to develop a C# program that would get a list of available Windows Updates and look up KB articles to retrieve titles of each update. (Otherwise, they all look like cryptic "Update for Windows Server (KBxxxxx)") I tried retrieving the…
Igorek
  • 15,716
  • 3
  • 54
  • 92
7
votes
2 answers

Toggle metered connection

Windows 10 allows the user to schedule when updates are applied, but not when they are downloaded. One way to control Windows 10 update downloads is to manually define the wifi connection as a metered connection, and then to manually set it back to…
BrilliantWeb
  • 71
  • 1
  • 3
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
6 answers

How to you determine when Windows is done rebooting?

I am using the Windows Update API to update a bunch of VM's. With Windows Update comes the inevitable reboots. Can anyone think of a way that I could tell from a remote server if the windows box has indeed finished its reboot? All ideas or thoughts…
Alex
  • 12,749
  • 3
  • 31
  • 45
6
votes
3 answers

FlowDocument (XPS) with Windows Update KB5020880 (CVE-2022-41089)

On 13. Dezember 2022 Microsoft made a Windows Update KB5020880 (CVE-2022-41089) for .NET 4.8.1 which should fix security problem on XPS. Since then the FlowDocument, which will be rendered to XPS, will not show local images anymore. I do need local…
jaz
  • 228
  • 2
  • 14
6
votes
2 answers

MS.Win32.Penimc.UnsafeNativeMethods Visual Studio 2015 and Sql Server Management Studio 2012

I am getting the following error after patch KB3186497 was installed on my machine.
Niederee
  • 4,155
  • 25
  • 38
6
votes
6 answers

Turn off windows update service & auto updates windows 10 using powershell

I want to use a powershell script to turn off windows update service & auto updates windows 10 using powershell. I've searched around but the commands didn't turn either one off completely. I'm manually doing this now on devices that aren't on the…
Jenesis
  • 109
  • 1
  • 1
  • 9
6
votes
6 answers

Automatically update Windows fully

I'm working on a project where the goal is to be able to update a windows computer 100%. That means a program or a script that updates windows automatically with no user interaction at all. Ideally a standalone script that can be run from another…
aeinstein
  • 73
  • 1
  • 1
  • 7
6
votes
1 answer

Windows Update Agent pure win32 APIs

I'm developing a sample code to get information about the Windows Updates Monitoring. I bumped into Windows Update Agent APIs. link: http://msdn.microsoft.com/en-us/library/windows/desktop/aa387099(v=vs.85).aspx But I'm not able to find any APIs for…
DebugBreak
  • 201
  • 3
  • 8
1
2
3
27 28