windows-itpro-docs/mdop/appv-v4/how-to-add-a-package-by-using-the-command-line.md
Nicholas Brower 1ae3f0b230 Merged PR 4822: "msdate update (generated from most recent commit date)"
"msdate update (generated from most recent commit date)"
2017-12-05 22:36:05 +00:00

62 lines
2.5 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: How to Add a Package by Using the Command Line
description: How to Add a Package by Using the Command Line
author: jamiejdt
ms.assetid: e75af49e-811a-407a-a7f0-6de8562b9188
ms.pagetype: mdop, appcompat, virtualization
ms.mktglfcycl: deploy
ms.sitesec: library
ms.prod: w8
ms.date: 06/16/2016
---
# How to Add a Package by Using the Command Line
The following procedures list the steps that are necessary to add a virtual application package to the Application Virtualization (App-V) Client on a specific computer.
**To add a virtual application package for a specific user**
- Run the following command under the user account of the person who is to get the package. The command adds and publishes the package for that user.
`SFTMIME ADD PACKAGE:”name” /MANIFEST <manifest-path>`
**To add a virtual application package for all users**
- Run the following command under an account that has administrator rights. The package is added and published for all users on the computer.
`SFTMIME ADD PACKAGE:”name” /MANIFEST <manifest-path> /GLOBAL`
**To add a package using an electronic software distribution system**
1. If you are using an electronic software distribution system that runs the commands under the computers **SYSTEM** account, the package is published for that account only, unless you use the /GLOBAL switch. Run the following command to add and publish the package for all users on the computer:
`SFTMIME ADD PACKAGE:”name” /MANIFEST <manifest-path> /GLOBAL`
2.
If you want to add the package for specific users only, run the **ADD PACKAGE** command, and then explicitly publish the package for each user by running the following **PUBLISH PACKAGE** command under each persons user account:
`SFTMIME ADD PACKAGE:”name” /MANIFEST <manifest-path>`
`SFTMIME PUBLISH PACKAGE:”name” /MANIFEST <manifest-path>`
Publishing the package without the GLOBAL parameter grants the user access to the applications in the package and publishes the file types and shortcuts that are listed in the manifest to the users profile. Permissions required are “Manage file type associations” (**ManageTypes**) and “Publish shortcuts” (**PublishShortcut**).
## Related topics
[How to Delete All Virtual Applications by Using the Command Line](how-to-delete-all-virtual-applications-by-using-the-command-line.md)
[How to Remove a Package by Using the Command Line](how-to-remove-a-package-by-using-the-command-line.md)