Get-AppxLastError

Get-AppxLastError

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

Syntax

Get-AppxLastError [ <CommonParameters>]

Detailed 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 .appx file name extension.

Parameters

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

Outputs

The output type is the type of the objects that the cmdlet emits.

  • System.Diagnostics.Eventing.Reader.EventLogRecord

Examples

Example 1: Get the last error

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

PS C:\> Get-AppxLastError

Get-AppxLog

Get-AppxPackage

Get-AppxPackageManifest

PackageManager class

Sideload Apps with DISM