

If events are returned, the query is valid. Get-WinEvent -LogName 'Microsoft-Windows-WindowsUpdateClient/Operational' -FilterXPath $XPath You can use the PowerShell cmdlet Get-WinEvent with the -FilterXPath parameter to test the validity of an XPath query. To create a custom data collection rule, you need to specify the XPath query for the events you want to collect. You can create a custom data collection rule to collect events from this log. "KB" + $ is possible to create an Azure Alert based on Windows Update events that are logged via Event Viewer in the log "Microsoft-Windows-WindowsUpdateClient/Operational". $($env:COMPUTERNAME,$ProductName,$Version,$OSVersion) $TempTable = New-Object Edition","Version","OS Build")) $UBR = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name UBR).UBR $CurrentBuild = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name CurrentBuild).CurrentBuild $Version = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name ReleaseID -ErrorAction Stop).ReleaseID $ProductName = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name ProductName).ProductName $Table = New-Object Edition","Version","OS Build")) To get Windows 10 current patch information using PowerShell script, you need to create and run the PowerShell script using the code below from Github.

The latest available update for the OS version.The installed update that corresponds to that build number, as well as the KB number and a link to the info page.When you run the script, the following information will be displayed: It can also report on all Windows updates published for the version of Windows 11/10 a workstation is currently on. The PowerShell script can be used to report which OS build a Windows 11/10 computer is currently on as well as which update is the latest update available to the device. PowerShell script to check Windows Update status


In this post, we will show you how to get current patch information for Windows 11/10 using a PowerShell script. Usually, users who wish to find out whether the latest cumulative update is installed on their Windows 11/10 system use this method to check the Windows Update History.
