Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AppxLog

Get-AppxLog

microsoft.windows.appx.packagemanager.commands.dll

Synopsis

Gets an app package (.appx) installation log.

Syntax

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

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

Detailed Description

The Get-AppxLog function gets the app package (.appx) installation log created during the deployment of an app package (.appx). The log contains errors, warnings, and additional information about the processes initiated by cmdlets in the Appx PowerShell module.

When Add-AppxPackage or Remove-AppxPackage report a failure, they will 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>

Gets the log for a particular app package (.appx) installation.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-All <SwitchParameter>

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

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

System.String[]

Return Type

System.Diagnostics.Eventing.Reader.EventLogRecord

Notes

None

Examples

Example 1

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

PS C:\>Get-AppxLog

Example 2

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

PS C:\>Get-AppxLog -All

Online Version
Package Manager API
How to Add and Remove Apps
Troubleshooting packaging, deployment, and query of Windows Store apps
Get-AppxPackage
Get-AppxPackageManifest
Remove-AppxPackage
Add-AppxPackage
Get-AppxLastError