Unpublish-AppvClientPackage

Unpublish-AppvClientPackage is accessible with the help of AppVClient module. To configure AppVClient, go through this link.

Synopsis

Removes the extension points for packages.

Description

The Unpublish-AppvClientPackage cmdlet removes all the extension points of the specified packages. The package contents remain on the target computer. The package is still added on the client and the appropriate AppvClientPackage object persists.

The package can be unpublished for the current user or if all users that log on to the target computer.

Parameters

-Global

Indicates that the packages are unpublished to all users that log into the targeted computer. Otherwise, the packages are only unpublished to the currently running user.

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 Microsoft Application Virtualization (App-V) Sequencer. The package ID is shared by all versions of a package.

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

-UserSID

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Version

Specifies the version of an App-V package in one specific lineage. If you do not specify this parameter, the cmdlet operates on the latest version found.

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 the latest version of the package.

Type:Guid
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Syntax

Unpublish-AppvClientPackage [-Global] [-UserSID <String>] [-PackageId] <Guid> [-VersionId] <Guid> [<CommonParameters>]

Unpublish-AppvClientPackage [-Global] [-UserSID <String>] [-Package] <AppvClientPackage> [<CommonParameters>]

Unpublish-AppvClientPackage [-Global] [-UserSID <String>] [-Name] <String> [[-Version] <String>] [<CommonParameters>]

——————-Example 1——————-
Unpublish a version of a package
PS C:\> Unpublish-AppvClientPackage -Name “VApp” -Version 3
This command unpublishes version 3 of the package named VApp.

——————-Example 2——————-
Unpublish a version of a package for all users
PS C:\> Unpublish-AppvClientPackage -Name “VApp” -Version 3 -Global
This command unpublishes version 3 of the package named VApp for all users on the computer.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Unpublish-AppvClientPackage

Get-Command Unpublish-AppvClientPackage powershell script command cmdlet appv client

You can also read about

  • Add-AppvClientPackage
  • Get-AppvClientPackage
  • Mount-AppvClientPackage
  • Publish-AppvClientPackage
  • Remove-AppvClientPackage
  • Repair-AppvClientPackage
  • Set-AppvClientPackage
  • Stop-AppvClientPackage

To know more PowerShell cmdlets(Commands) on AppVClient click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *