banner



How to check Windows Update History using PowerShell or CMD

Download PC Repair Tool to quickly discover & prepare Windows errors automatically

Windows systems are routinely updated with the latest patches to meliorate the operation of a organization. Microsoft releases the service and patches equally part of the free update service to enhance the Windows computing experience. These updates are automatically installed based on the system settings and rarely demand input from the end-users. The free updates are a part of Windows maintenance and support that releases software to gear up errors effectively. In social club to ensure secure computing, the Windows Update assures that the arrangement is up to date with the latest security patches, hotfixes, and bug fixes.

The users can check on the update history using PowerShell, Command line or i tin can likewise check the update history via Windows settings User interface. In this article, we talk over how to list all the history of Windows Update events using one of the chore automation and configuration management tool such as PowerShell. One can also obtain data about all the current hotfixes or quick fix engineering updates that are downloaded equally role of the software patches.

Cheque Windows Update History using PowerShell

Go to the Start bill of fare and search for Windows PowerShell. Right-click on it and click on Run every bit administrator.

In the command line write the post-obit command that lists the Hotfixes that are installed along with their ID, information on Installed on, clarification, etc.

wmic qfe list

How to check Windows Update History using PowerShell

You lot tin can also type the following control to listing the hotfixes and its associated description.

get-wmiobject -class win32_quickfixengineering

Additionally, one can as well write a query to the computer for Update history and return a arrow to a list of matching records on the Windows system. The queries are written to list the WUA history in a PowerShell by defining a few functions to convert WUA history events of result code to a Name and become the last and latest fifty WUA history. You can change the objects to list any number of by History of updated events.

# Convert Wua History ResultCode to a Name # 0, and v are not used for history # See https://msdn.microsoft.com/en-us/library/windows/desktop/aa387095(5=vs.85).aspx  part Convert-WuaResultCodeToName { param( [Parameter(Mandatory=$true)] [int] $ResultCode ) $Result = $ResultCode switch($ResultCode) { ii { $Result = "Succeeded" } 3 { $Result = "Succeeded With Errors" } 4 { $Result = "Failed" } } return $Consequence } part Become-WuaHistory { # Get a WUA Session $session = (New-Object -ComObject 'Microsoft.Update.Session') # Query the latest 1000 History starting with the first recordp $history = $session.QueryHistory("",0,50) | ForEach-Object { $Result = Convert-WuaResultCodeToName -ResultCode $_.ResultCode # Make the properties subconscious in com backdrop visible. $_ | Add-Member -MemberType NoteProperty -Value $Result -Proper noun Consequence $Product = $_.Categories | Where-Object {$_.Blazon -eq 'Product'} | Select-Object -Get-go 1 -ExpandProperty Proper name $_ | Add-Member -MemberType NoteProperty -Value $_.UpdateIdentity.UpdateId -Name UpdateId $_ | Add together-Fellow member -MemberType NoteProperty -Value $_.UpdateIdentity.RevisionNumber -Proper name RevisionNumber $_ | Add-Member -MemberType NoteProperty -Value $Product -Name Product -PassThru Write-Output $_ } #Remove aught records and but return the fields we desire $history | Where-Object {![Cord]::IsNullOrWhiteSpace($_.championship)} | Select-Object Result, Date, Championship, SupportUrl, Product, UpdateId, RevisionNumber }

Then now, type the following command to go the updated history events with issue appointment, update title, support URL, and update ID.

# Become all the update History, formatted as a table  Get-WuaHistory | Format-Tabular array

That's all.

Sourced from stackoverflow.com.

Bank check Windows Update History using Control Prompt

In an elevated CMD execute the post-obit command:

wmic qfe list

To find a specific update, you can apply the KB number, eg for KB1234567, use:

wmic qfe | find "1234567"

How do I list Windows Update in PowerShell?

Open up Windows Search using Win + S and blazon PowerShell. Once you detect it, launch it. Done that, execute the following command. You can apply this on the Windows concluding too.

wmic qfe listing

Do I need PowerShell in Windows eleven?

PowerShell is a powerful cross-platform tool, and if y'all want to apply script commands to change organisation settings and automate tasks, you demand PowerShell in Windows eleven. An advantage with Windows eleven is that you can execute the PowerShell control in Windows Terminal as well.

Pavithra is a Windows enthusiast, who loves keeping abreast with the latest in the world of applied science.

Source: https://www.thewindowsclub.com/check-windows-update-history-using-powershell

Posted by: goodsoncined1957.blogspot.com

0 Response to "How to check Windows Update History using PowerShell or CMD"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel