Are there any ways to get the information about windows update ( number of updates, history, status ) by using an application ? That is, to check using a software rather than manually .

Moreover, are there any ways to fake/change those information ? For example, change the status of your windows from 'not up-to-date' to 'updated'.

Dani AI

Generated

Following : there are programmatic options beyond the Control Panel (as pointed out) and the WMI hint from . WMI (for example Win32_QuickFixEngineering) is useful for installed hotfix lists but is largely read-only for the Windows Update client state. For a full, supported interface use the Windows Update Agent (WUA) COM API — it exposes search, history and install operations that an app can call.

Minimal PowerShell examples (via the WUA COM objects) show the idea:

$session = New-Object -ComObject Microsoft.Update.Session
$searcher = $session.CreateUpdateSearcher()
$result = $searcher.Search("IsInstalled=0")
$result.Updates.Count

To enumerate history:

$total = $searcher.GetTotalHistoryCount()
$history = $searcher.QueryHistory(0, $total)
foreach ($h in $history) { "$($h.Date) - $($h.Title) - $($h.ResultCode)" }

Other useful sources are the Get-HotFix cmdlet / Win32_QuickFixEngineering for hotfixes, WindowsUpdate.log (logging behavior changed on newer Windows releases), and WSUS or SCCM reporting for enterprise-wide status. Programmatic automation often requires elevated privileges and the Windows Update and BITS services to be running.

On "faking" status: there is no supported, safe way to mark a machine as up-to-date without actually applying the updates (WSUS/Windows Update uses client-server state and integrity checks). Editing logs or registry entries to spoof status is unsupported, can break update behavior and will likely be detected by management servers. For testing or controlled scenarios, prefer VM snapshots, controlled WSUS targeting, or write an internal reporting shim that reports synthetic status to whatever system needs it rather than tampering with the Windows Update client.

Recommended Answers

All 3 Replies

Go to control panel - > Windows updates -> view update history

he's asking for an application-side approach, not an user interface.
besides, that is also read only :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.