Bearbeiten

Freigeben über


Remove-AppvClientPackage

Removes the package from a computer.

Syntax

Remove-AppvClientPackage
      [-PackageId] <Guid>
      [-VersionId] <Guid>
      [<CommonParameters>]
Remove-AppvClientPackage
      [-Package] <AppvClientPackage>
      [<CommonParameters>]
Remove-AppvClientPackage
      [-Name] <String>
      [[-Version] <String>]
      [<CommonParameters>]

Description

The Remove-AppvClientPackage cmdlet removes the package from computer that runs the Microsoft Application Virtualization (App-V) client. The cmdlet deletes the AppvClientPackage object.

Examples

Example 1: Remove a version of a package by using the pipeline operator

PS C:\> Get-AppvPackage -Name "MyPackage" -Version 1 | Remove-Package

This command gets version 1 of the package named MyPackage, and then removes it from the computer.

Example 2: Remove a version of a package

PS C:\> Remove-Package -Name "MyPackage" -Version 1

This command removes version 1 of the package named MyPackage from the computer.

Parameters

-Name

Specifies the friendly name of the package given during sequencing. This value is obtained from the package manifest.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Package

Specifies an App-V package.

Type:AppvClientPackage
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PackageId

Specifies the package ID that uniquely identifies the package. It can be found in the package manifest or by opening the package in the sequencer. The package ID is shared by all versions of a specific package.

Type:Guid
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Version

Specifies the version of an App-V package in a lineage. If you do not specify this parameter, the cmdlet operates on all versions on the computer.

Type:String
Position:1
Default value:None
Required:False
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
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.AppvAgent.AppvClientPackage