Get-AppxLastError

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

Syntax

Get-AppxLastError []

Description

The Get-AppxLastError cmdlet gets the last error reported in the app package installation logs for the current Windows PowerShell® session. An app package has an .msix or .appx file name extension.

Examples

Example 1: Get the last error

PS C:\> Get-AppxLastError

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

Inputs

None

Outputs

EventLogRecord