Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Method

GetInstalledUpdates

ModuleOperatingSystem
LibraryCore
Action


Excerpt
Get list of installed Windows updates.


Parameters(None)
Return valuesTitle (string): Update title.
Status (string): "OK", and/or an error code as reported by the Windows Update component.
InstallDate (string): If available, the installation time and date.
Example


Code Block
languageperl
 OperatingSystem.GetInstalledUpdates();


Platforms
  • Windows
Notes

The list consists of all updates that have ever been installed for which the Windows Update Agent has a record. This includes updates that have been superseded and/or subsequently uninstalled, So the list is not just the currently installed updates.

The Status column can include an error code which may need to be interpreted in the absence of a corresponding message. The list of error codes is available on Microsoft's MSDN site.

Also note that an error code may also be returned in the event of a successful installation; for example, the error code 0x240006 may be present to indicate that an update did not install because it was already present on the device.