Get-Appx
Last
Error
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 .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
System.Diagnostics.Eventing.Reader.EventLogRecord