Get-AppxPackage

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

Synopsis

Gets a list of the app packages that are installed in a user profile.

Description

The Get-AppxPackage cmdlet gets a list of the app packages that are installed in a user profile. An app package has an .appx file name extension. To get the list of packages for a user profile other than the profile for the current user, you must run this command by using administrator permissions.

Parameters

-AllUsers

Indicates that this cmdlet lists app packages for all user accounts on the computer. To use this parameter, you must run the command by using administrator permissions.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

-Name

Specifies the name of a particular package. If you specify this parameter, the cmdlet returns results for this package only. Wildcards are permitted.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

-PackageTypeFilter

Specifies one or more comma-separated types of packages that the cmdlet gets from the package repository. Valid values are:

  • Bundle
  • Framework
  • Main
  • Resource
  • None

By default, this cmdlet returns only packages of types Main and Framework.

Type:PackageTypes
Accepted values:None, Main, Framework, Resource, Bundle, Xap
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

-Publisher

Specifies the publisher of a particular package. If you specify this parameter, the cmdlet returns results only for this publisher. Wildcards are permitted.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

-User

Specifies a user. If you specify this parameter, the cmdlet returns a list of app packages that are installed for only the user that this cmdlet specifies. To get the list of packages for a user profile other than the profile for the current user, you must run this command by using administrator permissions. The user name can be in one of these formats:

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

-Volume

Specifies an AppxVolume object. If you specify this parameter, this cmdlet returns only packages that are relative to volume that this parameter specifies.

Type:AppxVolume
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Syntax

Get-AppxPackage [-AllUsers] [-PackageTypeFilter <PackageTypes>] [[-Name] <String>] [[-Publisher] <String>] [-User <String>] [-Volume <AppxVolume>] [<CommonParameters>]

——————–Example 1——————–
Get all app packages for every user account
PS C:> Get-AppxPackage -AllUsers
This command lists the app packages that are installed for every user account on the computer.

——————–Example 2——————–
Get an app package for a specific a user
PS C:> Get-AppxPackage -Name “Package01” -User “TOSSolution\KumarS”
This command displays information about Package01 if it is installed in the specified user profile.

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

Get-Command Get-AppxPackage

Get-Command Get-AppxPackage powershell script command cmdlet appx

You can also read about

  • Add-AppxPackage
  • Get-AppxPackageManifest
  • Move-AppxPackage
  • Remove-AppxPackage

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 *