Get-AppxPackageManifest
Get-AppxPackageManifest is accessible with the help of Appx module. To configure Appx, go through this link.
Synopsis
Gets the manifest of an app package.
Description
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.
Parameters
-Package
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.
Type: | String |
Position: | 1 |
Default value: | None |
Accept pipeline input: | True (ByValue) |
Accept wildcard characters: | False |
-User
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
- [email protected]
- user_name
- SID-string
Type: | String |
Position: | 2 |
Default value: | None |
Accept pipeline input: | True (ByValue) |
Accept wildcard characters: | False |
Syntax
Get-AppxPackageManifest [-Package] <String> [[-User] <String>] [<CommonParameters>]
——————Example 1——————
Get the manifest for an app package
PS C:> Get-AppxPackageManifest -Package “package1”
This command gets the manifest for an app package named package1.
——————Example 2——————
Get the application ID for an app package
PS C:> (Get-AppxPackage -Name “WinJS” | Get-AppxPackageManifest).package.applications.application.id
This command gets the application ID for an app package that has the string WinJS in the name.
——————Example 3——————
PS C:> (Get-AppxPackage -Name “vlc” | Get-AppxPackageManifest).Package.Capabilities
This command gets the capabilities for an app package that has the string vlc in the name.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Get-AppxPackageManifest
You can also read about
- Get-AppxPackage
- Add-AppxPackage