< Back
Get-AppxLog
Post
NAME Get-AppxLog
SYNOPSIS
Gets an app package installation log.
SYNTAX
Get-AppxLog [-ActivityId <String>] [<CommonParameters>]
Get-AppxLog [-All] [<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 .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
(http://go.microsoft.com/fwlink/?LinkId=271201).
PARAMETERS
-ActivityId <String>
Specifies an activity ID. This cmdlet uses the ID to get the log for a particular app package installation.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-All [<SwitchParameter>]
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.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String[]
OUTPUTS
System.Diagnostics.Eventing.Reader.EventLogRecord
NOTES
Example 1: Get logs for the most recent deployment
PS C:\\> Get-AppxLog
This command gets the logs associated with the most recent deployment operation.
Example 2: Get logs for all logs
PS C:\\> Get-AppxLog -All
This command gets all the app package installation logs on the computer.
RELATED LINKS
Package Manager API http://go.microsoft.com/fwlink/?LinkId=245447
How to Add and Remove Apps http://go.microsoft.com/fwlink/?LinkID=231020
Troubleshooting packaging, deployment, and query of Windows Store apps http://go.microsoft.com/fwlink/?LinkId=271201
Get-AppxPackage
Get-AppxPackageManifest
Get-AppxLastError
SYNOPSIS
Gets an app package installation log.
SYNTAX
Get-AppxLog [-ActivityId <String>] [<CommonParameters>]
Get-AppxLog [-All] [<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 .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
(http://go.microsoft.com/fwlink/?LinkId=271201).
PARAMETERS
-ActivityId <String>
Specifies an activity ID. This cmdlet uses the ID to get the log for a particular app package installation.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-All [<SwitchParameter>]
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.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String[]
OUTPUTS
System.Diagnostics.Eventing.Reader.EventLogRecord
NOTES
Example 1: Get logs for the most recent deployment
PS C:\\> Get-AppxLog
This command gets the logs associated with the most recent deployment operation.
Example 2: Get logs for all logs
PS C:\\> Get-AppxLog -All
This command gets all the app package installation logs on the computer.
RELATED LINKS
Package Manager API http://go.microsoft.com/fwlink/?LinkId=245447
How to Add and Remove Apps http://go.microsoft.com/fwlink/?LinkID=231020
Troubleshooting packaging, deployment, and query of Windows Store apps http://go.microsoft.com/fwlink/?LinkId=271201
Get-AppxPackage
Get-AppxPackageManifest
Get-AppxLastError