Add-AppvClientPackage is accessible with the help of AppVClient module. To configure AppVClient, go through this link.
Synopsis
Adds a package to a computer running the App-V client.
Description
The Add-AppvClientPackage cmdlet adds a new package to a computer that runs the Microsoft Application Virtualization (App-V) client. You can also upgrade an existing package running on a computer that runs 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 remain unchanged.
Parameters
-DynamicDeploymentConfiguration
Specifies the path of 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.
Type: | String |
Position: | 1 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Path
Specifies the location of the .appv file that contains the package to be added. This value can be a local directory, a network directory, or an HTTP or HTTPS URL.
Type: | String |
Aliases: | PSPath |
Position: | 0 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName, ByValue) |
Accept wildcard characters: | False |
Syntax
Add-AppvClientPackage [-Path] <String> [[-DynamicDeploymentConfiguration] <String>] [<CommonParameters>]
—————–Example 1—————–
Add a package to the client
PS C:\> Add-AppvClientPackage -Path “http://TOSSolution.com/content/package.APPV”
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.
—————–Example 2—————–
Add a package with a configuration file
PS C:\> Add-AppvClientPackage -Path “http://TOSSolution.com/content/package.appv” -DynamicDeploymentConfiguration “C:\Installation\DynamicDeploymentConfig.xml”
This command adds a package with a Dynamic Deployment Configuration file.
—————–Example 3—————-
Add a package to the client and store the result
PS C:\> $Package = Add-AppvClientPackage -Path “http://TOSSolution.com/content/package.APPV”
This command adds a new package to the client and assigns the resulting AppvClientPackage object to the variable $Package.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Add-AppvClientPackage
You can also read about
- Get-AppvClientPackage
- Mount-AppvClientPackage
- Publish-AppvClientPackage
- Remove-AppvClientPackage
- Repair-AppvClientPackage
- Set-AppvClientPackage
- Stop-AppvClientPackage
- Unpublish-AppvClientPackage