windows-itpro-docs/mdop/appv-v5/how-to-apply-the-deployment-configuration-file-by-using-powershell51.md
VSC-Service-Account 858476cf2f CI Update
2019-06-04 22:13:57 +00:00

56 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: How to Apply the Deployment Configuration File by Using PowerShell
description: How to Apply the Deployment Configuration File by Using PowerShell
author: dansimp
ms.assetid: 78fe0f15-4a36-41e3-96d6-7d5aa77c1e06
ms.reviewer:
manager: dansimp
ms.author: dansimp
ms.pagetype: mdop, appcompat, virtualization
ms.mktglfcycl: deploy
ms.sitesec: library
ms.prod: w10
ms.date: 06/16/2016
---
# How to Apply the Deployment Configuration File by Using PowerShell
The dynamic deployment configuration file is applied when a package is added or set to a computer running the App-V 5.1 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.1 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**
- 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**
**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**
~~~
**Got a suggestion for App-V**? Add or vote on suggestions [here](http://appv.uservoice.com/forums/280448-microsoft-application-virtualization). **Got an App-V issue?** Use the [App-V TechNet Forum](https://social.technet.microsoft.com/Forums/home?forum=mdopappv).
~~~
## Related topics
[Operations for App-V 5.1](operations-for-app-v-51.md)