< Back
Publish-AppvClientPackage
Post
NAME Publish-AppvClientPackage
SYNOPSIS
Publishes the App-V package.
SYNTAX
Publish-AppvClientPackage [-PackageId] <Guid> [-VersionId] <Guid> [[-DynamicUserConfigurationPath] <String>] [-DynamicUserConfigurationType
{UseDeploymentConfiguration | UseNoConfiguration | UseExistingConfiguration}] [-Global] [-UserSID <String>] [<CommonParameters>]
Publish-AppvClientPackage [-Package] <AppvClientPackage> [[-DynamicUserConfigurationPath] <String>] [-DynamicUserConfigurationType
{UseDeploymentConfiguration | UseNoConfiguration | UseExistingConfiguration}] [-Global] [-UserSID <String>] [<CommonParameters>]
Publish-AppvClientPackage [-Name] <String> [[-Version] <String>] [-DynamicUserConfigurationPath <String>] [-DynamicUserConfigurationType
{UseDeploymentConfiguration | UseNoConfiguration | UseExistingConfiguration}] [-Global] [-UserSID <String>] [<CommonParameters>]
DESCRIPTION
The Publish-AppvClientPackage cmdlet publishes the appropriate extension points of a set of Microsoft Application Virtualization (App-V) packages.
Examples of common extension points include shortcuts and FTAs. You can publish the package to the current user or to all users that log into the
targeted computer. You can also provide a Dynamic User Configuration file for the package.
PARAMETERS
-DynamicUserConfigurationPath [<String>]
Specifies the path of a Dynamic User configuration file for the specified App-V package to be added. The cmdlet uses the Dynamic User
Configuration file to override the default behavior provided in the user section of the package manifest or the Dynamic Deployment
Configuration.
Required? false
Position? 3
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-DynamicUserConfigurationType [<DynamicUserConfiguration>]
Specifies what should be done without a defined dynamic user configuration file. The acceptable values for this parameter are:
-- UseDeploymentConfiguration. The package uses the user configuration part of deployment configuration.
-- UseNoConfiguration. Clear any previous configuration and use settings from the manifest.
-- UseExistingConfiguration. Make no changes to the configuration and use the last published configuration.
If you do not specify this parameter, this cmdlet uses UseExistingConfiguration if the package is already published or
UseDeploymentConfiguration if it is not.
Use this parameter only during user publishing. It is not valid for global publish.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Global [<SwitchParameter>]
Indicates that the provided package is published to all users that log into the targeted computer. Otherwise, the packages are only published
to the currently running user.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
Specifies the name of the package given when it was sequenced. This value is obtained from the package manifest.
Required? true
Position? 1
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Package <AppvClientPackage>
Specifies an App-V package.
Required? true
Position? 1
Default value none
Accept pipeline input? true(ByValue)
Accept wildcard characters? false
-PackageId <Guid>
Specifies a GUID that identifies the package. The information can be found in the package manifest or by opening the package in the App-V
sequencer. The package ID is shared by all versions of a package.
Required? true
Position? 1
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-UserSID [<String>]
Specifies the SID of the intended user, in the form of S-1-2-34-56789012-3456789012-345678901-2345. This parameter requires elevated rights to
run.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Version [<String>]
Specifies the version of an App-V package in a lineage. If you do not specify this parameter, the cmdlet operates on the latest of the package
on the computer running the App-V client.
Required? false
Position? 2
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-VersionId <Guid>
Specifies a GUID that differentiates a package version from other versions. If you do not specify this parameter, the cmdlet operates on the
latest version of the package.
Required? true
Position? 2
Default value none
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Microsoft.AppvAgent.AppvClientPackage
OUTPUTS
Example 1: Publish a version of a package to all users
PS C:\\> Publish-AppvClientPackage -Name "MyApp" -Version 1 -Global -DynamicUserConfiguration "C:\\content\\policies\\MyApp.policy"
This command publishes version 1 of the package named MyApp to all users on the computer and applies the Dynamic User Configuration policy file.
Example 2: Publish a version of a package to a user
PS C:\\> Publish-AppvClientPackage -Name "MyApp" -Version 1 -UserPolicy "C:\\content\\policies\\MyAppConfiguration.xml"
This command publishes version 1 of the package named "MyApp" to the user and applies the Dynamic User Configuration policy file.
Example 3: Publish the latest version of a package to all users
PS C:\\> Publish-AppvClientPackage -Name "MyApp" -Global
This command publishes the package named MyApp to all users on the computer.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=827715
Add-AppvClientPackage
Get-AppvClientPackage
Mount-AppvClientPackage
Remove-AppvClientPackage
Repair-AppvClientPackage
Set-AppvClientPackage
Stop-AppvClientPackage
Unpublish-AppvClientPackage
SYNOPSIS
Publishes the App-V package.
SYNTAX
Publish-AppvClientPackage [-PackageId] <Guid> [-VersionId] <Guid> [[-DynamicUserConfigurationPath] <String>] [-DynamicUserConfigurationType
{UseDeploymentConfiguration | UseNoConfiguration | UseExistingConfiguration}] [-Global] [-UserSID <String>] [<CommonParameters>]
Publish-AppvClientPackage [-Package] <AppvClientPackage> [[-DynamicUserConfigurationPath] <String>] [-DynamicUserConfigurationType
{UseDeploymentConfiguration | UseNoConfiguration | UseExistingConfiguration}] [-Global] [-UserSID <String>] [<CommonParameters>]
Publish-AppvClientPackage [-Name] <String> [[-Version] <String>] [-DynamicUserConfigurationPath <String>] [-DynamicUserConfigurationType
{UseDeploymentConfiguration | UseNoConfiguration | UseExistingConfiguration}] [-Global] [-UserSID <String>] [<CommonParameters>]
DESCRIPTION
The Publish-AppvClientPackage cmdlet publishes the appropriate extension points of a set of Microsoft Application Virtualization (App-V) packages.
Examples of common extension points include shortcuts and FTAs. You can publish the package to the current user or to all users that log into the
targeted computer. You can also provide a Dynamic User Configuration file for the package.
PARAMETERS
-DynamicUserConfigurationPath [<String>]
Specifies the path of a Dynamic User configuration file for the specified App-V package to be added. The cmdlet uses the Dynamic User
Configuration file to override the default behavior provided in the user section of the package manifest or the Dynamic Deployment
Configuration.
Required? false
Position? 3
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-DynamicUserConfigurationType [<DynamicUserConfiguration>]
Specifies what should be done without a defined dynamic user configuration file. The acceptable values for this parameter are:
-- UseDeploymentConfiguration. The package uses the user configuration part of deployment configuration.
-- UseNoConfiguration. Clear any previous configuration and use settings from the manifest.
-- UseExistingConfiguration. Make no changes to the configuration and use the last published configuration.
If you do not specify this parameter, this cmdlet uses UseExistingConfiguration if the package is already published or
UseDeploymentConfiguration if it is not.
Use this parameter only during user publishing. It is not valid for global publish.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Global [<SwitchParameter>]
Indicates that the provided package is published to all users that log into the targeted computer. Otherwise, the packages are only published
to the currently running user.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
Specifies the name of the package given when it was sequenced. This value is obtained from the package manifest.
Required? true
Position? 1
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Package <AppvClientPackage>
Specifies an App-V package.
Required? true
Position? 1
Default value none
Accept pipeline input? true(ByValue)
Accept wildcard characters? false
-PackageId <Guid>
Specifies a GUID that identifies the package. The information can be found in the package manifest or by opening the package in the App-V
sequencer. The package ID is shared by all versions of a package.
Required? true
Position? 1
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-UserSID [<String>]
Specifies the SID of the intended user, in the form of S-1-2-34-56789012-3456789012-345678901-2345. This parameter requires elevated rights to
run.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Version [<String>]
Specifies the version of an App-V package in a lineage. If you do not specify this parameter, the cmdlet operates on the latest of the package
on the computer running the App-V client.
Required? false
Position? 2
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-VersionId <Guid>
Specifies a GUID that differentiates a package version from other versions. If you do not specify this parameter, the cmdlet operates on the
latest version of the package.
Required? true
Position? 2
Default value none
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Microsoft.AppvAgent.AppvClientPackage
OUTPUTS
Example 1: Publish a version of a package to all users
PS C:\\> Publish-AppvClientPackage -Name "MyApp" -Version 1 -Global -DynamicUserConfiguration "C:\\content\\policies\\MyApp.policy"
This command publishes version 1 of the package named MyApp to all users on the computer and applies the Dynamic User Configuration policy file.
Example 2: Publish a version of a package to a user
PS C:\\> Publish-AppvClientPackage -Name "MyApp" -Version 1 -UserPolicy "C:\\content\\policies\\MyAppConfiguration.xml"
This command publishes version 1 of the package named "MyApp" to the user and applies the Dynamic User Configuration policy file.
Example 3: Publish the latest version of a package to all users
PS C:\\> Publish-AppvClientPackage -Name "MyApp" -Global
This command publishes the package named MyApp to all users on the computer.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=827715
Add-AppvClientPackage
Get-AppvClientPackage
Mount-AppvClientPackage
Remove-AppvClientPackage
Repair-AppvClientPackage
Set-AppvClientPackage
Stop-AppvClientPackage
Unpublish-AppvClientPackage