添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Este explorador ya no se admite.

Actualice a Microsoft Edge para aprovechar las características y actualizaciones de seguridad más recientes, y disponer de soporte técnico.

Descargar Microsoft Edge Más información sobre Internet Explorer y Microsoft Edge

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 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 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
  • Resource
  • 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 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 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 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.

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