Mount-AppvClientPackage
Loads a package into the App-V cache.
Syntax
ByGuid (Default)
Mount-AppvClientPackage
[-PackageId] <Guid>
[-VersionId] <Guid>
[-Cancel]
[<CommonParameters>]
ByPackage
Mount-AppvClientPackage
[-Package] <AppvClientPackage>
[-Cancel]
[<CommonParameters>]
ByName
Mount-AppvClientPackage
[-Name] <String>
[[-Version] <String>]
[<CommonParameters>]
Description
The Mount-AppvClientPackage cmdlet initiates or resumes the loading of a Microsoft Application Virtualization (App-V) package into the cache.
Examples
Example 1: Get a specific version of a package
PS C:\> Mount-AppvClientPackage -Name "MyApp" -Version 2
This command downloads the version 2 of the package named MyApp.
Example 2: Get all versions of a package
PS C:\> Mount-AppvClientPackage -Name "MyApp"
This command downloads the all versions of the package named MyApp.
Example 3: Download all packages that match a string
PS C:\> Get-AppvClientPackage -Name "My*" | Mount-AppvClientPackage
This command gets all packages that have the string My in the name, and then downloads them.
Example 4: Download and publish a new package
PS C:\> Add-AppvClientPackage -Path "http://MyServer/content/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 "MyApp" -Cancel
This command cancels the download of the package name MyApp.
Parameters
-Cancel
Indicates that the cmdlet stops the loading of a package.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByGuid
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
ByPackage
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
Specifies the friendly name of the package given during sequencing time. This value is obtained from the package manifest.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByName
Position: | 0 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Package
Specifies an App-V package.
Parameter properties
Type: | AppvClientPackage |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByPackage
Position: | 0 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByGuid
Position: | 0 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByName
Position: | 1 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByGuid
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
Microsoft.AppvAgent.AppvClientPackage
Outputs
Microsoft.AppvAgent.AppvClientPackage
Notes
- If a previous mount has been canceled, the cmdlet resumes that mount when it is run again. The package must be added to the system before mounting. Otherwise the cmdlet fails. If you do not specify any parameters, the cmdlet mounts all packages on the system.
- This cmdlet is synchronous. It returns when the mount option has completed. To make the cmdlet asynchronous, use the Start-Job cmdlet.