CmdID / PowerShell / Cmdlets / Get
Get-WindowsUpdateLog
Merges Windows Update .etl files into a single log file. Windows Server PowerShell reference
From the Windows Server PowerShell reference 7 parameters Its page in the reference
Parameters
-Confirm, -cfPrompts you for confirmation before running the cmdlet.-ETLPath, -PsPathSpecifies an array of paths of Windows Update .etl files to convert into WindowsUpdate.log.-ForceFlushIndicates that this cmdlet forces the Windows Update Agent on the current device to flush all of its traces to .etl files.-IncludeAllLogsDecodes all update-related logs: Windows Update, Update Session Orchestrator (USO), and the update user interface (UX).-LogPathSpecifies the full path to which Get-WindowsUpdateLog writes WindowsUpdate.log.-ProcessingTypeSpecifies the file type that Get-WindowsUpdateLog uses for temporary files that are created during intermediate processing.-WhatIf, -wiShows what would happen if the cmdlet runs.