--- title: How to Manage App-V 5.0 Packages Running on a Stand-Alone Computer by Using PowerShell description: How to Manage App-V 5.0 Packages Running on a Stand-Alone Computer by Using PowerShell ms.assetid: 1d6c2d25-81ec-4ff8-9262-6b4cf484a376 author: jamiejdt --- # How to Manage App-V 5.0 Packages Running on a Stand-Alone Computer by Using PowerShell The following sections explain how to perform various management tasks on a stand-alone client computer by using PowerShell: - [To return a list of packages](#bkmk-return-pkgs-standalone-posh) - [To add a package](#bkmk-add-pkgs-standalone-posh) - [To publish a package](#bkmk-pub-pkg-standalone-posh) - [To publish a package to a specific user](#bkmk-pub-pkg-a-user-standalone-posh) - [To add and publish a package](#bkmk-add-pub-pkg-standalone-posh) - [To unpublish an existing package](#bkmk-unpub-pkg-standalone-posh) - [To unpublish a package for a specific user](#bkmk-unpub-pkg-specfc-use) - [To remove an existing package](#bkmk-remove-pkg-standalone-posh) - [To enable only administrators to publish or unpublish packages](#bkmk-admins-pub-pkgs) - [Understanding pending packages (UserPending and GlobalPending)](#bkmk-understd-pend-pkgs) ## To return a list of packages Use the following information to return a list of packages that are entitled to a specific user: **Cmdlet**: Get-AppvClientPackage **Parameters**: -Name -Version -PackageID -VersionID **Example**: Get-AppvClientPackage –Name “ContosoApplication” -Version 2 ## To add a package Use the following information to add a package to a computer. **Important** This example only adds a package. It does not publish the package to the user or the computer. **Cmdlet**: Add-AppvClientPackage **Example**: $Contoso = Add-AppvClientPackage \\\\path\\to\\appv\\package.appv ## To publish a package Use the following information to publish a package that has been added to a specific user or globally to any user on the computer.
Publishing method | Cmdlet and example |
---|---|
Publishing to the user |
Cmdlet: Publish-AppvClientPackage Example: Publish-AppvClientPackage “ContosoApplication” |
Publishing globally |
Cmdlet: Publish-AppvClientPackage Example: Publish-AppvClientPackage “ContosoApplication” -Global |
Cmdlet |
Set-AppvClientConfiguration |
Parameter |
-RequirePublishAsAdmin Parameter values:
Example:: Set-AppvClientConfiguration –RequirePublishAsAdmin1 |
Cmdlet output item | Description |
---|---|
UserPending |
Indicates whether the listed package has a pending task that is being applied to the user:
|
GlobalPending |
Indicates whether the listed package has a pending task that is being applied globally to the computer:
|
Task type | Applicable rule |
---|---|
User-based task, e.g., publishing a package to a user |
The pending task will be performed after the user logs off and then logs back on. |
Globally based task, e.g., enabling a connection group globally |
The pending task will be performed when the computer is shut down and then restarted. |