Edit

Share via


Get-AppxLog

Gets an app package installation log.

Syntax

All (Default)

Get-AppxLog
    [-All]
    [<CommonParameters>]

ActivityId

Get-AppxLog
    [-ActivityId <System.String>]
    [<CommonParameters>]

Description

The Get-AppxLog cmdlet gets the app package installation log created during the deployment of an app package. An app package has an .msix or .appx file 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.

Examples

Example 1: Get logs for the most recent deployment

Get-AppxLog

This command gets the logs associated with the most recent deployment operation.

Example 2: Get logs for all logs

Get-AppxLog -All

This command gets all the app package installation logs on the computer.

Parameters

-ActivityId

Specifies an activity ID. This cmdlet uses the ID to get the log for a particular app package installation.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ActivityId
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

All
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

System.System.String

Outputs

EventLogRecord