cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Summary

Starting with Windows 10 and higher Operating Systems, Microsoft decided to decrease a load of Windows by changing how the default log file of Windows Update should be written and reviewed. On the newer systems Microsoft requires you to issue the logfile first before you can read any of it. 

powershell log.PNG

Synopsis

This tutorial explains the faster and easier way to do this on the fly using Windows PowerShell.

Discussion

Steps:

1. Open an elevated PowerShell prompt. 

2. Run: 

Get-WindowsUpdateLog

3. Accept the eventual popup that makes you agree on using Microsoft Symbols (first-time use only).
4. Await PowerShell to find and compile the relevant WU chunks (.etl files) generated on the system
5. When done, PowerShell will place the WindowsUpdate.log file on your Desktop.

The compiled WindowsUpdate.log file is generated as a 'fixed-only' file using this method.

Workaround

Windows Update may sometime generate an excessive number of .etl files tracing update history in longer periods. The compilation of such log files may take a longer time to compile all .etl chunks. 

To keep historical data and still retain a limited amount of chunks, you can compile WU.log on your desktop and then delete the compiled chunks leaving you with the compiled file as a backup.

Useful information

1. Directory where all .etl chunks are generated is: "C:\Windows\Logs\WindowsUpdate\"
2. You can remove chunks based on any string pattern within the names of the .etl chunks using wild character (*) before and after the string you aim to select.

Example

a) Use 'dir' command to list all contents in the folder and the -Name property
b) Find a similar pattern in the files you want to delete (such as date, or common string of characters)
c) Use 'Remove-Item' command with a wild character before and after the selected string to delete files

Command example

dir C:\Windows\Logs\WindowsUpdate\

Remove-Item *20180618* (this will delete all files that date from 18-06-2018)

User-added image

Additional Information

https://blogs.technet.microsoft.com/charlesa_us/2015/08/06/windows-10-windowsupdate-log-and-how-to-view-it-with-powershell-or-tracefmt-exe/

Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Sep 27, 2019 05:56 PM
Updated by: