Get-AppxLog
Gets an app package (.appx) installation log.
Syntax
Get-AppxLog
[-All]
[<CommonParameters>]
Get-AppxLog
[-ActivityId <String>]
[<CommonParameters>]
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 appshttp://go.microsoft.com/fwlink/?LinkId=271201.
Examples
Example 1
PS C:\>Get-AppxLog
This example gets the logs associated with the most recent deployment operation.
Example 2
PS C:\>Get-AppxLog -All
This example gets all the app package installation logs on the computer.
Parameters
-ActivityId
Gets the log for a particular app package (.appx) installation.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
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.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
String[]