Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AppxPackage

Get-AppxPackage

microsoft.windows.appx.packagemanager.commands.dll

Synopsis

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

Syntax

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

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

Parameters

-AllUsers <SwitchParameter>

Lists app packages (.appx) for all user accounts on the computer. To use this parameter, you must run the command by using administrator permissions.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

-Name <String>

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

Aliases

None

Required?

false

Position

1

Default value

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-PackageTypeFilter <PackageTypes>

Specifies one or multiple types of packages that should be returned from the package repository. The PackageTypeFilter value can be:

     -- bundle

     -- framework

     -- main

     -- resource

     -- none

By default, Get-AppxPackage only returns packages of type: Main and Framework.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

True (ByValue, ByPropertyName)

Accept wildcard characters?

false

-Publisher <String>

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

Aliases

None

Required?

false

Position

2

Default value

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-User <String>

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

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

Input Type

System.String[]

Return Type

Microsoft.Windows.Appx.PackageManager.Commands.AppxPackage

Notes

None

Examples

Example 1

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

PS C:\>Get-AppxPackage -AllUsers

Example 2

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

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

Online Version
Package Manager API
How to Add and Remove Apps
Add-AppxPackage
Get-AppxPackageManifest
Remove-AppxPackage
Get-AppxLog
Get-AppxLastError