Compartir a través de


Get-WindowsUpdateLog

Se aplica a: Windows 10, Windows Server Technical Preview

Get-WindowsUpdateLog

Merges Windows Update .etl files into a single log file.

Sintaxis

Parameter Set: Default
Get-WindowsUpdateLog [[-ETLPath] <String[]> ] [[-LogPath] <String> ] [[-SymbolServer] <String> ] [-ForceFlush] [-InformationAction <ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <String> ] [-ProcessingType <String> {CSV | XML} ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Descripción detallada

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

This cmdlet requires access to a Microsoft symbol server.

Parámetros

-ETLPath<String[]>

Specifies an array of paths of Windows Update .etl files to convert into WindowsUpdate.log. The default value for this parameter is the Windows Update trace file directory for the current device. Los valores aceptables para este parámetro son:

-- The full path of a directory that contains one or more .etl files.
-- The full path of a single .etl file.
-- A comma-separated list of full paths of .etl files.

Alias

PsPath

¿Necesario?

false

¿Posición?

1

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

true(ByValue,ByPropertyName)

¿Aceptar caracteres comodín?

false

-ForceFlush

Indicates that this cmdlet forces the Windows Update Agent on the current device to flush all of its traces to .etl files. This process stops the Update Orchestrator and Windows Update services. Running this cmdlet with this parameter requires administrative credentials. You can start Windows PowerShell with administrative credentials by using the Run as administrator command.

Alias

none

¿Necesario?

false

¿Posición?

named

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

false

-InformationAction<ActionPreference>

Specifies how this cmdlet responds to an information event. Los valores aceptables para este parámetro son:

-- SilentlyContinue
-- Stop
-- Continue
-- Inquire
-- Ignore
-- Suspend

Alias

infa

¿Necesario?

false

¿Posición?

named

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

false

-InformationVariable<String>

Specifies a variable in which to store an information event message.

Alias

iv

¿Necesario?

false

¿Posición?

named

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

false

-LogPath<String>

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

Alias

none

¿Necesario?

false

¿Posición?

2

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

false

-ProcessingType<String>

Specifies the file type that Get-WindowsUpdateLog uses for temporary files that are created during intermediate processing. Los valores aceptables para este parámetro son:

-- CSV (comma-separated values)
-- XML

By default, the value is CSV. The temporary files are in $env:TEMP\WindowsUpdateLog.

Alias

none

¿Necesario?

false

¿Posición?

named

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

false

-SymbolServer<String>

Specifies the URL of Microsoft Symbol Server. By default, this value is the Microsoft public symbol server.

Alias

none

¿Necesario?

false

¿Posición?

3

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

false

-Confirm

Solicita confirmación antes de ejecutar el cmdlet.

¿Necesario?

false

¿Posición?

named

Valor predeterminado

false

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

false

-WhatIf

Muestra lo que sucedería si se ejecuta el cmdlet. El cmdlet no se ejecuta.

¿Necesario?

false

¿Posición?

named

Valor predeterminado

false

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, vea  about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de los objetos que el cmdlet emite.

Ejemplos

Example 1: Merge and convert Windows Update trace files

This command merges and converts Windows Update trace files (.etl files) into a single readable WindowsUpdate.log file.

PS C:\> Get-WindowsUpdateLog

Temas relacionados

Windows Update Cmdlets