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.

Description

This function attempts to extract the contents of a specific App-V 5.0 XML file from a compressed .APPV package/archive and return the contents as a System.Xml.XmlDocument object. The -XML parameter has a specific set of options and is not case-sensitive (unlike the Get-AppV5File module).

Syntax

Get-AppV5FileXml [-AppV] <String> [-XML] <String> [<CommonParameters>]

Parameters


-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

-XML <String>

The specific App-V 5.0 XML file within the App-V 5.0 package/archive .APPV file to extract

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).

Examples

Extracts the AppxManifest.xml file from the App-V 5.0 c:\package.appv file and returns the contents as an System.Xml.XmlDocument.

C:\PS> Get-AppV5FileXml -AppV c:\package.appv -XML AppxManifest

Code Snippet

C:\PS> $XML = Get-AppV5FileXml -AppV c:\package.appv
C:\PS> $XML.Package.Applications.Application

Id : [{AppVPackageRoot}]\chrome.exe
Origin : Application
TargetInPackage : true
Target : [{AppVPackageRoot}]\chrome.exe
VisualElements : VisualElements

C:\PS> $XML.Package.Identity.VersionId
d8121602-53f6-4e7a-9c95-b4530c2f7111

C:\PS>

Archives

Categories