Get-AppxLastError

Get the last error reported in the app package installation logs.

Syntax

Get-AppxLastError []

Description

The Get-AppxLastError function gets the last error reported in the app package (.appx) installation logs for the current Windows PowerShell session.

Examples

Example 1

PS C:\>Get-AppxLastError

This example gets the last error reported in the app installation logs.

Inputs

None

Outputs

EventLogRecord