< Back

Stop-AppvClientPackage

Tue Jan 29, 2019 9:25 pm

NAME Stop-AppvClientPackage



SYNOPSIS

Shuts down virtual environments for specified packages.





SYNTAX

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



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



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





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 [<SwitchParameter>]

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.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>

Specifies the friendly name of the package given during Sequencing time. 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 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.



Required? true

Position? 1

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 all available versions of

the package on the computer.



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, whether older, newer, or of a different lineage. If you do not

specify this parameter, the cmdlet operates on all versions 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

Microsoft.AppvAgent.AppvClientPackage







Example 1: Shut down a virtual environment for a version of a package



PS C:\\> Stop-AppvClientPackage -Name "MyPackage" -Version 2



This command shuts down the virtual environment of version 2 of package named MyPackage.





Example 2: Shut down a virtual environment for all versions of a package



PS C:\\> Get-AppvClientPackage -Name "MyPackage" | Stop-AppvClientPackage



This command gets all versions of the package named MyPackage, and then shuts down the virtual environment for those results.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=827727

Add-AppvClientPackage

Get-AppvClientPackage

Mount-AppvClientPackage

Publish-AppvClientPackage

Remove-AppvClientPackage

Repair-AppvClientPackage

Set-AppvClientPackage

Unpublish-AppvClientPackage