Get-AppxLog

Get-AppxLog is accessible with the help of Appx module. To configure Appx, go through this link.

Synopsis

Gets an app package installation log.

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 .

Parameters

-ActivityId

Specifies an activity ID. This cmdlet uses the ID to get the log for a particular app package installation.

Type:String
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.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Syntax

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

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

—————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.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Get-AppxLog

Get-Command Get-AppxLog powershell script command cmdlet appx

You can also read about

  • Get-AppxPackage
  • Get-AppxPackageManifest
  • Get-AppxLastError

To know more PowerShell cmdlets(Commands) on Appx click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *