Compartilhar via


Get-AppxLog

Applies To: Windows 8, Windows Server 2012

Get-AppxLog

Gets an app package (.appx) installation log.

Syntax

Parameter Set: All
Get-AppxLog [-All] [ <CommonParameters>]

Parameter Set: ActivityId
Get-AppxLog [-ActivityId <String> ] [ <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

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-All

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.

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

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

Get-AppxPackage

Get-AppxPackageManifest

Remove-AppxPackage

Add-AppxPackage

Get-AppxLastError

Package Manager API

How to Add and Remove Apps

Troubleshooting packaging, deployment, and query of Windows Store apps