windows-itpro-docs/windows/manage/appv-apply-the-deployment-configuration-file-with-powershell.md

2.1 KiB

title, description, author, ms.pagetype, ms.mktglfcycl, ms.sitesec, ms.prod
title description author ms.pagetype ms.mktglfcycl ms.sitesec ms.prod
How to Apply the Deployment Configuration File by Using Windows PowerShell (Windows 10) How to Apply the Deployment Configuration File by Using Windows PowerShell MaggiePucciEvans mdop, appcompat, virtualization deploy library w10

How to Apply the Deployment Configuration File by Using Windows PowerShell

Applies to: Windows 10, version 1607

The dynamic deployment configuration file is applied when a package is added or set to a computer running the App-V 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 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 Windows PowerShell

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

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

    Note
    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

     

Have a suggestion for App-V?

Add or vote on suggestions here. For App-V issues, use the App-V TechNet Forum.

Operations for App-V