Export (0) Print
Expand All

Get-AppxLog

Windows Server Technical Preview and Windows 10

Get-AppxLog

Gets an app package installation log.

Syntax

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

Parameter Set: ActivityId
Get-AppxLog [-ActivityId <String> ] [ <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: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 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: 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 the app package installation logs on the computer.


PS C:\> Get-AppxLog -All

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft