Add-AppvClientPackage

Mis à jour: décembre 2014

S'applique à: Application Virtualization 5.0, Application Virtualization 5.0 SP1, Application Virtualization 5.0 SP2, Application Virtualization 5.0 SP3

Add-AppvClientPackage

Adds a package to a computer running the App-V client.

Syntaxe

Parameter Set: ByPath
Add-AppvClientPackage [-Path] <String> [[-DynamicDeploymentConfiguration] <String> ] [ <CommonParameters>]




Description détaillée

The Add-AppvClientPackage cmdlet adds a new package to a computer running the Microsoft Application Virtualization (App-V) client. You can also upgrade an existing package running on a computer running the App-V client. The newly added package or package version is registered with the App-V client.

If the package already exists on the computer, but the package to be added is a different version, the new version is added. Existing versions will remain unchanged.

Paramètres

-DynamicDeploymentConfiguration<String>

Specifies the path to a dynamic deployment configuration file for the specified App-V package to be added. The cmdlet uses the dynamic deployment configuration file to override the default configuration provided in the package manifest.

If you do not specify this parameter, the App-V client assigns the default computer policy to the App-V package to be added.


Alias

none

Obligatoire ?

false

Position ?

2

Valeur par défaut

none

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-Path<String>

Specifies the location of the .appv file containing the package to be added. This parameter can point to a local directory, a network directory, or an HTTP or HTTPS URL.


Alias

PSPath

Obligatoire ?

true

Position ?

1

Valeur par défaut

none

Accepter l’entrée de pipeline ?

True (ByValue, ByPropertyName)

Accepter les caractères génériques ?

false

<CommonParameters>

Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d’informations, consultez about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Entrées

Le type d’entrée correspond au type des objets que vous pouvez transmettre à l’applet de commande.

  • Microsoft.AppvAgent.AppvPackage

Sorties

Le type de sortie est le type des objets émis par l’applet de commande.

  • Microsoft.AppvAgent.AppvClientPackage

Exemples

Example 1: Add a package to the client

This command adds a new package to the client computer. If the package is a different version of an already existing package, the App-V agent adds this new version, but does not modify any existing versions. Since no computer policy is provided, the package receives the default computer policy.


PS C:\> Add-AppvClientPackage -Path "http://MyServer/content/package.APPV"

Example 2: Add a package with a configuration file

This command adds a package with a Dynamic Deployment Configuration file.


PS C:\> Add-AppvClientPackage -Path "http://MyServer/content/package.appv" -DynamicDeploymentConfiguration "C:\MyConfigfiles\DynamicDeploymentConfig.xml"

Example 3: Add a package to the client and store the result

This command adds a new package to the client and assigns the resulting AppvClientPackage object to the variable $Package.


PS C:\> $Package = Add-AppvClientPackage -Path "http://MyServer/content/package.APPV"

Rubriques connexes

Ajouts de la communauté

AJOUTER
Afficher: