MASIGNCLEAN104

How to check Windows Update History using PowerShell

iklan banner

Windows systems are routinely updated alongside the latest patches to amend the functioning of a system. Microsoft releases the service as well as patches every bit part of the gratis update service to lift the Windows computing experience. These updates are automatically installed based on the organisation settings as well as rarely needs input from the destination users. The gratis updates are a part of Windows maintenance as well as back upwardly that releases software to attain errors effectively. In monastic say to ensure the secure computing, the Windows Update assures that the organisation is upwardly to appointment alongside the latest safety patches, hotfixes, as well as põrnikas fixes.

The users tin banking concern check on the update history using PowerShell, Command trace or ane tin also banking concern check the update history via Windows settings User interface. In this article, nosotros hash out on how to listing all the history of Windows Update events using ane of the trace automation as well as configuration administration tool such every bit PowerShell. One tin also obtain data nearly all the electrical flow hotfixes or quick attain technology scientific discipline updates that are downloaded every bit part of the software patches.

Check Windows Update History using PowerShell

Go to the Start carte as well as search for Windows PowerShell. Right click on it as well as click on Run every bit administrator.

In the ascendancy trace write the next ascendancy that lists the Hotfixes that are installed along alongside their ID, data on Installed on, description, etc.

wmic qfe list

Windows systems are routinely updated alongside the latest patches to amend the functioning o How to banking concern check Windows Update History using PowerShell

You tin also type the next ascendancy to listing the hotfixes as well as its associated description.

get-wmiobject -class win32_quickfixengineering

Windows systems are routinely updated alongside the latest patches to amend the functioning o How to banking concern check Windows Update History using PowerShell

Additionally, ane tin also write a query to the reckoner for Update history as well as furnish a pointer to a listing of matching records on the Windows system. The queries are written to listing the WUA history inwards a PowerShell yesteryear defining roughly few functions to convert WUA history events of final result code to a Name as well as instruct the terminal as well as latest l WUA history. You tin alter the objects to listing whatever publish of yesteryear History of updated events.

Windows systems are routinely updated alongside the latest patches to amend the functioning o How to banking concern check Windows Update History using PowerShell

# Convert Wua History ResultCode to a Name # 0, as well as five are non used for history # See https://msdn.microsoft.com/en-us/library/windows/desktop/aa387095(v=vs.85).aspxbusiness office Convert-WuaResultCodeToName{param( [Parameter(Mandatory=$true)][int] $ResultCode)$Result = $ResultCodeswitch($ResultCode){2{$Result = "Succeeded"}3{$Result = "Succeeded With Errors"}4{$Result = "Failed"}}furnish $Result}business office Get-WuaHistory{# Get a WUA Session$session = (New-Object -ComObject 'Microsoft.Update.Session')# Query the latest K History starting alongside the get-go recordp$history = $session.QueryHistory("",0,50) | ForEach-Object {$Result = Convert-WuaResultCodeToName -ResultCode $_.ResultCode# Make the properties hidden inwards com properties visible.$_ | Add-Member -MemberType NoteProperty -Value $Result -Name Result$Product = $_.Categories | Where-Object {$_.Type -eq 'Product'} | Select-Object -First 1 -ExpandProperty Name$_ | Add-Member -MemberType NoteProperty -Value $_.UpdateIdentity.UpdateId -Name UpdateId$_ | Add-Member -MemberType NoteProperty -Value $_.UpdateIdentity.RevisionNumber -Name RevisionNumber$_ | Add-Member -MemberType NoteProperty -Value $Product -Name Product -PassThruWrite-Output $_}#Remove zip records as well as entirely furnish the fields nosotros want$history |Where-Object {![String]::IsNullOrWhiteSpace($_.title)} |Select-Object Result, Date, Title, SupportUrl, Product, UpdateId, RevisionNumber}

Then directly type the next ascendancy to instruct the updates history events alongside final result date, update title, back upwardly URL, as well as update ID.

# Get all the update History, formatted every bit a tableGet-WuaHistory | Format-Table

Windows systems are routinely updated alongside the latest patches to amend the functioning o How to banking concern check Windows Update History using PowerShell

That's all.

Sourced from stackoverflow.com.


Source: https://www.thewindowsclub.com/
Share This :