How to Manage Connection Groups on a Stand-alone Computer by Using PowerShell

An App-V connection group allows you to run all the virtual applications as a defined set of packages in a single virtual environment. For example, you can virtualize an application and its plug-ins by using separate packages, but run them together in a single connection group.

A connection group XML file defines the connection group that runs on the computer where you’ve installed the App-V client. For information about the connection group XML file and how to configure it, see About the Connection Group File.

This topic explains the following procedures:

To add and publish the App-V packages in the connection group

  1. To add and publish the App-V 5.0 packages to the computer running the App-V client, type the following command:

    Add-AppvClientPackage –path c:\tmpstore\quartfin.appv | Publish-AppvClientPackage

  2. Repeat step 1 of this procedure for each package in the connection group.

To add and enable the connection group on the App-V client

  1. Add the connection group by typing the following command:

    Add-AppvClientConnectionGroup –path c:\tmpstore\financ.xml

  2. Enable the connection group by typing the following command:

    Enable-AppvClientConnectionGroup –name “Financial Applications”

    When any virtual applications that are in the member packages are run on the target computer, they will run inside the connection group’s virtual environment and will be available to all the virtual applications in the other packages in the connection group.

To enable or disable a connection group for a specific user

  1. Review the parameter description and requirements:

    • The parameter enables an administrator to enable or disable a connection group for a specific user.

    • You must use App-V 5.0 SP2 Hotfix Package 5 or later to use this parameter.

    • You can run this cmdlet from the user or administrator session.

    • You must be logged in with administrative credentials to use the parameter.

    • The end user must be logged in.

    • You must provide the end user’s security identifier (SID).

  2. Use the following cmdlets, and add the optional –UserSID parameter, where -UserSID represents the end user’s security identifier (SID):

    Cmdlet Examples


    Enable-AppVClientConnectionGroup “ConnectionGroupA” -UserSID S-1-2-34-56789012-3456789012-345678901-2345

    Disable -AppVClientConnectionGroup

    Disable -AppVClientConnectionGroup “ConnectionGroupA” -UserSID S-1-2-34-56789012-3456789012-345678901-2345

To allow only administrators to enable connection groups

  1. Review the description and requirement for using this cmdlet:

    • Use this cmdlet and parameter to configure the App-V client to allow only administrators (not end users) to enable or disable connection groups.

    • You must be using at least App-V 5.0 SP3 to use this cmdlet.

  2. Run the following cmdlet and parameter:

    Cmdlet Parameter and values Example



    • 0 - False

    • 1 - True

    Set-AppvClientConfiguration –RequirePublishAsAdmin1

    Got an App-V issue? Use the App-V TechNet Forum.

Operations for App-V 5.0

Administering App-V by Using PowerShell