Get-AppxPackage
Get-AppxPackage
Gets a list of the app packages that are installed in a user profile.
構文
Parameter Set: Default
Get-AppxPackage [[-Name] <String> ] [[-Publisher] <String> ] [-AllUsers] [-PackageTypeFilter <PackageTypes> {None | Main | Framework | Resource | Bundle | Xap} ] [-User <String> ] [-Volume <AppxVolume> ] [ <CommonParameters>]
詳細説明
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.
パラメーター
-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.
Aliases |
none |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
true (ByValue, ByPropertyName) |
ワイルドカード文字の受け入れ |
false |
-Name<String>
Specifies the name of a particular package. If you specify this parameter, the cmdlet returns results for this package only. Wildcards are permitted.
Aliases |
none |
必須/オプション |
false |
位置 |
1 |
既定値 |
none |
パイプライン入力の受け入れ |
true (ByValue) |
ワイルドカード文字の受け入れ |
false |
-PackageTypeFilter<PackageTypes>
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.
Aliases |
none |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
True (ByValue, ByPropertyName) |
ワイルドカード文字の受け入れ |
false |
-Publisher<String>
Specifies the publisher of a particular package. If you specify this parameter, the cmdlet returns results only for this publisher. Wildcards are permitted.
Aliases |
none |
必須/オプション |
false |
位置 |
2 |
既定値 |
none |
パイプライン入力の受け入れ |
true (ByValue) |
ワイルドカード文字の受け入れ |
false |
-User<String>
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:
-- domain\user_name
-- user_name@fqn.domain.tld
-- user_name
-- SID-string
Aliases |
none |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
true (ByValue) |
ワイルドカード文字の受け入れ |
false |
-Volume<AppxVolume>
Specifies an AppxVolume object. If you specify this parameter, this cmdlet returns only packages that are relative to volume that this parameter specifies.
Aliases |
none |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
true(ByValue,ByPropertyName) |
ワイルドカード文字の受け入れ |
false |
<CommonParameters>
このコマンドレットは共通のパラメーターをサポートしています(-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、および -OutVariable)。詳細については、TechNet の「 「about_CommonParameters」 (https://go.microsoft.com/fwlink/p/?LinkID=113216) を参照してください。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- System.String[]
出力
出力型は、コマンドレットが出力するオブジェクトの型です。
Microsoft.Windows.Appx.PackageManager.Commands.AppxPackage
This cmdlet returns an AppxPackage object that contains information, including the full name of the app package.
使用例
Example 1: Get all app packages for every user account
This command lists the app packages that are installed for every user account on the computer.
PS C:\> Get-AppxPackage -AllUsers
Example 2: Get an app package for a specific a user
This command displays information about Package17 if it is installed in the specified user profile.
PS C:\> Get-AppxPackage -Name "Package17" –User "Contoso\EvanNarvaez"