Export (0) Print
Expand All

How to Apply the Deployment Configuration File Using PowerShell

Updated: November 1, 2012

Applies To: Application Virtualization 5.0

The dynamic deployment configuration file is applied when a package is added or set to a computer running the App-V 5.0 client before the package has been published. The file configures the default settings for package for all users on the computer running the App-V 5.0 client. This section describes the steps used to use a deployment configuration file. The procedure is based on the following example and assumes the following package and configuration files exist on a computer:

c:\Packages\Contoso\MyApp.appv

c:\Packages\Contoso\DynamicConfigurations\deploymentconfig.xml

To Apply the Deployment Configuration File Using PowerShell

  1. To specify a new default set of configurations for all users who will run the package on a specific computer, using a PowerShell console type the following:

    Add-AppVClientPackage –Path c:\Packages\Contoso\MyApp.appv -DynamicDeploymentConfiguration c:\Packages\Contoso\DynamicConfigurations\deploymentconfig.xml

    noteNote
    This command captures the resulting object into $pkg. If the package is already present on the computer, the Set-AppVclientPackage cmdlet can be used to apply the deployment configuration document:

    Set-AppVClientPackage –Name Myapp –Path c:\Packages\Contoso\MyApp.appv -DynamicDeploymentConfiguration c:\Packages\Contoso\DynamicConfigurations\deploymentconfig.xml

See Also

Other Resources

Operations for App-V 5.0

-----
You can learn more about MDOP in the TechNet Library, search for troubleshooting on the TechNet Wiki, or follow us on Facebook or Twitter.
-----
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft