Skip to content

Commit 97cd253

Browse files
authored
Merge pull request MicrosoftDocs#3689 from MicrosoftDocs/main
Publish main to live, Tuesday 10:30AM PDT, 10/31
2 parents 6762538 + 96d0e12 commit 97cd253

File tree

1 file changed

+37
-12
lines changed

1 file changed

+37
-12
lines changed

docset/winserver2022-ps/windowsupdate/Get-WindowsUpdateLog.md

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
description: Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
2+
description: Use this article to help manage Windows and Windows Server technologies with Windows PowerShell.
33
external help file: WindowsUpdateLog.psm1-help.xml
44
Module Name: WindowsUpdate
5-
ms.date: 12/20/2016
5+
ms.date: 10/31/2023
66
online version: https://learn.microsoft.com/powershell/module/windowsupdate/get-windowsupdatelog?view=windowsserver2022-ps&wt.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Get-WindowsUpdateLog
@@ -16,21 +16,28 @@ Merges Windows Update `.etl` files into a single log file.
1616

1717
## SYNTAX
1818

19+
### ParameterSetDefault
1920
```
2021
Get-WindowsUpdateLog [[-ETLPath] <String[]>] [[-LogPath] <String>]
21-
[-ProcessingType <String>] [-ForceFlush] [-WhatIf] [-Confirm] [<CommonParameters>]
22+
[-ProcessingType <String>] [-IncludeAllLogs] [-ForceFlush] [-WhatIf] [-Confirm] [<CommonParameters>]
23+
```
24+
25+
26+
### ParameterSetIncludeAllLogs
27+
```
28+
Get-WindowsUpdateLog [-IncludeAllLogs] [<CommonParameters>]
2229
```
2330

2431
## DESCRIPTION
2532

2633
The `Get-WindowsUpdateLog` cmdlet merges and converts Windows Update `.etl` files into a single
2734
readable `WindowsUpdate.log` file. Windows Update Agent uses Event Tracing for Windows (ETW) to
2835
generate diagnostic logs. Windows Update no longer directly produces a `WindowsUpdate.log` file.
29-
Instead, it produces `.etl` files that are not immediately readable as written.
36+
Instead, it produces `.etl` files that aren't immediately readable as written.
3037

3138
For Windows 10 versions prior to 1709 (OS Build 16299), this cmdlet requires access to a Microsoft
3239
symbol server, and log decoding must be run from a Windows 10 version earlier than 1709. Logs from
33-
Windows 10, version 1709 onward do not require a Microsoft symbol server, and need to be decoded
40+
Windows 10, version 1709 onward don't require a Microsoft symbol server, and need to be decoded
3441
from Windows 10, versions 1709 or higher.
3542

3643
## EXAMPLES
@@ -90,7 +97,7 @@ Prompts you for confirmation before running the cmdlet.
9097

9198
```yaml
9299
Type: SwitchParameter
93-
Parameter Sets: (All)
100+
Parameter Sets: Default
94101
Aliases: cf
95102

96103
Required: False
@@ -112,7 +119,7 @@ The acceptable values for this parameter are:
112119

113120
```yaml
114121
Type: String[]
115-
Parameter Sets: (All)
122+
Parameter Sets: Default
116123
Aliases: PsPath
117124
118125
Required: False
@@ -131,7 +138,7 @@ PowerShell with administrative credentials by using the Run as administrator com
131138

132139
```yaml
133140
Type: SwitchParameter
134-
Parameter Sets: (All)
141+
Parameter Sets: Default
135142
Aliases:
136143
137144
Required: False
@@ -141,14 +148,32 @@ Accept pipeline input: False
141148
Accept wildcard characters: False
142149
```
143150

151+
### -IncludeAllLogs
152+
153+
Decodes all update-related logs: Windows Update, Update Session Orchestrator (USO), and the update user interface (UX). This parameter is mutually exclusive of all other parameters of this cmdlet. Specifying this parameter uses defaults for all other parameters. This parameter causes a folder to be created on the desktop and readable WindowsUpdate.log, USO.log, and UX.log files are written to it.
154+
155+
156+
```yaml
157+
Type: SwitchParameter
158+
Parameter Sets: IncludeAllLogs
159+
Aliases:
160+
161+
Required: False
162+
Position: Named
163+
Default value: None
164+
Accept pipeline input: False
165+
Accept wildcard characters: False
166+
```
167+
168+
144169
### -LogPath
145170

146171
Specifies the full path to which `Get-WindowsUpdateLog` writes `WindowsUpdate.log`.
147172
The default value is `WindowsUpdate.log` in the Desktop folder of the current user.
148173

149174
```yaml
150175
Type: String
151-
Parameter Sets: (All)
176+
Parameter Sets: Default
152177
Aliases:
153178
154179
Required: False
@@ -171,7 +196,7 @@ The temporary files are in `$env:TEMP\WindowsUpdateLog`.
171196

172197
```yaml
173198
Type: String
174-
Parameter Sets: (All)
199+
Parameter Sets: Default
175200
Aliases:
176201
Accepted values: CSV, XML
177202
@@ -185,11 +210,11 @@ Accept wildcard characters: False
185210
### -WhatIf
186211

187212
Shows what would happen if the cmdlet runs.
188-
The cmdlet is not run.
213+
The cmdlet isn't run.
189214

190215
```yaml
191216
Type: SwitchParameter
192-
Parameter Sets: (All)
217+
Parameter Sets: Default
193218
Aliases: wi
194219
195220
Required: False

0 commit comments

Comments
 (0)