Administering App-V by using Windows PowerShell

Applies to:

  • Windows 10
  • Windows 11

Microsoft Application Virtualization (App-V) supports Windows PowerShell cmdlets that give administrators a quick and easy way to manage App-V. The following sections will tell you more about how to use Windows PowerShell with App-V.

How to administer App-V with Windows PowerShell

The following table lists articles that will tell you more about how to use PowerShell for App-V.

Name Description
How to load the Windows PowerShell cmdlets for App-V and get cmdlet help Describes how to install the Windows PowerShell cmdlets and find cmdlet help and examples.
How to manage App-V packages running on a stand-alone computer by using Windows PowerShell Describes how to manage the client package lifecycle on a stand-alone computer with Windows PowerShell.
How to manage connection groups on a stand-alone computer by using Windows PowerShell Describes how to manage connection groups with Windows PowerShell.
How to modify client configuration by using Windows PowerShell Describes how to modify the client with Windows PowerShell.
How to apply the user configuration file by using Windows PowerShell Describes how to apply a user configuration file with Windows PowerShell.
How to apply the deployment configuration file by using Windows PowerShell Describes how to apply a deployment configuration file with Windows PowerShell.
How to sequence a package by using Windows PowerShell Describes how to create a new package with Windows PowerShell.
How to create a package accelerator by using Windows PowerShell Describes how to create a package accelerator with Windows PowerShell. You can use package accelerators to automatically sequence large, complex applications.
How to enable reporting on the App-V client by using Windows PowerShell Describes how to enable the computer running the App-V Client to send reporting information.
How to install the App-V databases and convert the associated security identifiers by using Windows PowerShell Describes how to take an array of account names and to convert each of them to the corresponding SID in standard and hexadecimal formats.
How to configure the client to receive package and connection groups updates from the publishing server Describes how to use Windows PowerShell to configure a client after you have deployed the App-V management and publishing servers and added the required packages and connection groups.

Important

Make sure that any script you execute with your App-V packages matches the execution policy that you have configured for Windows PowerShell.

Windows PowerShell error handling

The following table describes Windows PowerShell error handling for App-V.

Event Action
Using the RollbackOnError attribute with embedded scripts When you use the RollbackOnError attribute with embedded scripts, the attribute is ignored for the following events:
- Removing a package
- Unpublishing a package
- Terminating a virtual environment
- Terminating a process
Package name contains $ If a package name contains the character $, you must use a single-quote ( ' ).
For example:
Add-AppvClientPackage 'Contoso$App.appv'