Get-AppxLog
Get-AppxLog
Gets an app package installation log.
Syntax
Parameter Set: ActivityId
Get-AppxLog [-ActivityId <String> ] [ <CommonParameters>]
Parameter Set: All
Get-AppxLog [-All] [ <CommonParameters>]
Detailed Description
The Get-AppxLog cmdlet gets the app package installation log created during the deployment of an app package. An app package has an .appx file name extension. The log contains errors, warnings, and additional information about the processes initiated by cmdlets in the Appx Windows PowerShell® module.
When Add-AppxPackage or Remove-AppxPackage report a failure, they return the ActivityID to use with Get-AppxLog.
For more information about common error codes, see Troubleshooting packaging, deployment, and query of Windows Store apps.
Parameters
-ActivityId<String>
Specifies an activity ID. This cmdlet uses the ID to get the log for a particular app package installation.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-All
Indicates that the cmdlet gets all logs on the computer. You can get additional information when you run this cmdlets from Windows PowerShell as an administrator.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- System.String[]
Outputs
The output type is the type of the objects that the cmdlet emits.
- System.Diagnostics.Eventing.Reader.EventLogRecord
Examples
Example 1: Get logs for the most recent deployment
This command gets the logs associated with the most recent deployment operation.
PS C:\> Get-AppxLog
Example 2: Get logs for all logs
This command gets all of the app package installation logs on the computer.
PS C:\> Get-AppxLog -All
Related topics
Troubleshooting packaging, deployment, and query of Windows Store apps