Powershell Get-winevent Error "La solicitud no es compatible"

Powershell Get-winevent Error "La solicitud no es compatible"

Estoy intentando leer un archivo de evento evtx generado por wusa pero Get-WinEvent simplemente arroja un error.

PS> Get-WinEvent -path .\install.evtx
Get-WinEvent : The request is not supported
At line:1 char:1
+ Get-WinEvent -path .\install.evtx
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-WinEvent], EventLogException
    + FullyQualifiedErrorId : System.Diagnostics.Eventing.Reader.EventLogException,Microsoft.PowerShell.Commands.GetWi
   nEventCommand

El archivo se abre bien en el Visor de eventos.

Mi única suposición es que no tengo instalado el proveedor correcto.

Esta es la versión de PowerShell que estoy usando.

Name                           Value
----                           -----
PSVersion                      5.1.17134.165
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17134.165
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Estos son los únicos módulos que tengo que coinciden con Microsoft.Powershell.*

Microsoft.PowerShell.Management  Microsoft.PowerShell.PSReadLine  Microsoft.PowerShell.Utility

¿Alguien podría ayudar a resolver esto?

información relacionada