Stop-AppvClientPackage

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

Synopsis

Shuts down virtual environments for specified packages.

Description

The Stop-AppvClientPackage cmdlet shuts down the virtual environment for the specified packages. All applications and processes within that package are forced to shut down. Any unsaved application data is lost.

Parameters

-Global

Specifies that the cmdlet shuts down virtual environments for the specified packages for all users on the computer. Usage of the Global parameter requires administrative credentials.

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

-Version

Specifies the version of an App-V package in a lineage. If you do not specify this parameter, the cmdlet operates on all available versions of the package 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

Stop-AppvClientPackage [-Global] [-PackageId] <Guid> [-VersionId] <Guid> [<CommonParameters>]

Stop-AppvClientPackage [-Global] [-Package] <AppvClientPackage> [<CommonParameters>]

Stop-AppvClientPackage [-Global] [-Name] <String> [[-Version] <String>] [<CommonParameters>]

——————-Example 1——————-
Shut down a virtual environment for a version of a package
PS C:\> Stop-AppvClientPackage -Name “VPackage” -Version 2
This command shuts down the virtual environment of version 2 of package named VPackage.

——————-Example 2——————-
Shut down a virtual environment for all versions of a package
PS C:\> Get-AppvClientPackage -Name “VPackage” | Stop-AppvClientPackage
This command gets all versions of the package named VPackage, and then shuts down the virtual environment for those results.

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

Get-Command Stop-AppvClientPackage

Get-Command Stop-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
  • Unpublish-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 *