英語で読む

次の方法で共有


Get-AppxPackageManifest

Get-AppxPackageManifest

Gets the manifest of an app package.

構文

Parameter Set: Default
Get-AppxPackageManifest [-Package] <String> [[-User] <String> ] [ <CommonParameters>]

詳細説明

The Get-AppxPackageManifest cmdlet gets the manifest of an app package. An app package has an .appx file name extension. The manifest is an .xml document that contains information about the package, like the package ID.

パラメーター

-Package<String>

Specifies an AppxPackage object or the full name of a package. To get the manifest of a package on the computer that is not installed for the current user, you must run this command by using administrator permissions. Wildcards are permitted.

Aliases

none

必須/オプション

true

位置

1

既定値

none

パイプライン入力の受け入れ

true (ByValue)

ワイルドカード文字の受け入れ

false

-User<String>

Specifies a user. This cmdlet gets the manifest of packages that are installed for the user that this parameter 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

位置

2

既定値

none

パイプライン入力の受け入れ

true (ByValue)

ワイルドカード文字の受け入れ

false

<CommonParameters>

このコマンドレットは共通のパラメーターをサポートしています(-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、および -OutVariable)。詳細については、TechNet の「 「about_CommonParameters」 (https://go.microsoft.com/fwlink/p/?LinkID=113216) を参照してください。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • Microsoft.Windows.Appx.PackageManager.Commands.AppxPackage[]

    This cmdlet accepts an array of AppxPackage objects that contain information, including the full name of the app package.

出力

出力型は、コマンドレットが出力するオブジェクトの型です。

  • System.XML.XMLDocument

    This cmdlet returns a read-only .xml document that contains information about the app package, like the package ID.

使用例

Example 1: Get the manifest for an app package

This command gets the manifest for an app package named package1_1.0.0.0_neutral__8wekyb3d8bbwe.

PS C:\> Get-AppxPackageManifest -Package "package1_1.0.0.0_neutral__8wekyb3d8bbwe"

Example 2: Get the application ID for an app package

This command gets the application ID for an app package that has the string WinJS in the name.

PS C:\> (Get-AppxPackage -Name "*WinJS*" | Get-AppxPackageManifest).package.applications.application.id

Example 3

This command gets the capabilities for an app package that has the string ZuneMusic in the name.

PS C:\> (Get-AppxPackage -Name "*ZuneMusic*" | Get-AppxPackageManifest).Package.Capabilities

関連項目

Get-AppxPackage

Add-AppxPackage

Package Manager API

How to Add and Remove Apps