Mount-AppvClientPackage
Mount-AppvClientPackage is accessible with the help of AppVClient module. To configure AppVClient, go through this link.
Synopsis
Loads a package into the App-V cache.
Description
The Mount-AppvClientPackage cmdlet initiates or resumes the loading of an Microsoft Application Virtualization (App-V) package into the cache.
Parameters
-Cancel
Indicates that the cmdlet stops the loading of a package.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specifies the friendly name of the package given during sequencing time. This value is obtained from the package manifest.
Type: | String |
Position: | 0 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Package
Specifies an App-V package.
Type: | AppvClientPackage |
Position: | 0 |
Default value: | None |
Accept pipeline input: | True (ByValue) |
Accept wildcard characters: | False |
-PackageId
Specifies a GUID that uniquely identifies the package. It can be found in the package manifest or by opening the package in the App-V Sequencer. The package IDs are shared by all versions of a specific package.
Type: | Guid |
Position: | 0 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Version
Specifies the version of an App-V package in one lineage. If you do not specify this parameter, the cmdlet operates on all versions on the computer.
Type: | String |
Position: | 1 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VersionId
Specifies a GUID that differentiates a package version from other versions, whether older, newer, or of a different lineage. If you do not specify this parameter, the cmdlet operates on all versions of the package.
Type: | Guid |
Position: | 1 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Syntax
Mount-AppvClientPackage [-Cancel] [-PackageId] <Guid> [-VersionId] <Guid> [<CommonParameters>]
Mount-AppvClientPackage [-Cancel] [-Package] <AppvClientPackage> [<CommonParameters>]
Mount-AppvClientPackage [-Name] <String> [[-Version] <String>] [<CommonParameters>]
——————-Example 1——————-
Get a specific version of a package
PS C:\> Mount-AppvClientPackage -Name “VApp” -Version 2
This command downloads the version 2 of the package named VApp.
——————-Example 2——————-
Get all versions of a package
PS C:\> Mount-AppvClientPackage -Name “VApp”
This command downloads the all versions of the package named VApp.
——————-Example 3——————-
Download all packages that match a string
PS C:\> Get-AppvClientPackage -Name “VA*” | Mount-AppvClientPackage
This command gets all packages that have the string VA in the name, and then downloads them.
——————-Example 4——————-
Download and publish a new package
PS C:\> Add-AppvClientPackage -Path “http://TOSSolution.com/Virutal/package.Appv” | Mount-AppvClientPackage | Publish-AppvClientPackage -Global
This command adds the package from the path specified, downloads it, and then publishes it to all users on the computer.
——————-Example 5——————-
Cancel a download
PS C:\> Mount-AppvClientPackage -Name “VApp” -Cancel
This command cancels the download of the package name VApp.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Mount-AppvClientPackage
You can also read about
- Add-AppvClientPackage
- Get-AppvClientPackage
- Publish-AppvClientPackage
- Remove-AppvClientPackage
- Repair-AppvClientPackage
- Set-AppvClientPackage
- Stop-AppvClientPackage
- Unpublish-AppvClientPackage