This PowerShell module is included as part the Virtual Engine App-V 5.0 PowerShell modules download. For installation details, please refer to the Installing the New App-V 5 PowerShell Modules post. Note: This module requires PowerShell 3.0 and the Microsoft .Net Framework 4.5.
This function attempts to extract the contents of the specifed file from a compressed .APPV package/archive and return the contents as a System.Xml.XmlDocument object.
Get-AppV5File [-AppV] <String> [-File] <String> [<CommonParameters>]
-AppV <String> The source App-V 5.0 package/archive .APPV file Required? true Position? 1 Default value Accept pipeline input? false Accept wildcard characters? false -File <String> Required? true Position? 2 Default value Accept pipeline input? false Accept wildcard characters? false <CommonParameters> This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Extracts the AppxManifest.xml file from the App-V 5.0 c:\package.appv file and returns the contents as a System.Xml.XmlDocument object. Note: For the standard .APPV XML files it is recommended you use the Get-AppV5FileXml (GAppV5FX) command.
C:\PS>Get-AppV5File -AppV c:\package.appv -XML AppxManifest.xml
C:\PS> $APPV = Get-AppV5File -AppV c:\package.appv -XML AppxManifest.xml C:\PS> $APPV.Package.Identity.PackageId b6299ba1-bb16-4ed5-b50c-c4ec5843d9a9 C:\PS>