Get-AppxPackage

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

Syntax

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

Description

The Get-AppxPackage cmdlet gets a list of the app packages (.appx) that are installed in a user profile. 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.

Examples

Example 1

PS C:\>Get-AppxPackage -AllUsers

This command lists the app packages (.appx) that are installed for every user account on the computer.

Example 2

PS C:\>Get-AppxPackage -Name Package1 -User domain\username

This command displays information about Package1 if it's installed in the specified user profile.

Parameters

-AllUsers

Lists app packages (.appx) 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
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specifies the name of a particular package. If you use this parameter, the cmdlets will return only results for this package. Wildcards are permitted.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:True
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, Get-AppxPackage only returns packages of type: Main and Framework.

Type:PackageTypes
Accepted values:None, Main, Framework, Resource, Bundle
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Publisher

Specifies the publisher of a particular package. If you use this parameter, the cmdlets will return only results for this publisher. Wildcards are permitted.

Type:String
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-User

Specifies a user name. If you use this parameter, the cmdlets will return only a list of app packages (.appx) that are installed for the specified user. 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:

-- domain\user_name -- user_name@fqn.domain.tld -- user_name -- SID-string

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String[]

Outputs

Microsoft.Windows.Appx.PackageManager.Commands.AppxPackage

An AppxPackage object that contain information, including the full name of the app package.