windows-itpro-docs/mdop/appv-v5/how-to-load-the-powershell-cmdlets-and-get-cmdlet-help-51.md
2019-05-30 09:52:44 -03:00

6.9 KiB
Raw Blame History

title, description, author, ms.assetid, ms.reviewer, manager, ms.author, ms.pagetype, ms.mktglfcycl, ms.sitesec, ms.prod, ms.date
title description author ms.assetid ms.reviewer manager ms.author ms.pagetype ms.mktglfcycl ms.sitesec ms.prod ms.date
How to Load the PowerShell Cmdlets and Get Cmdlet Help How to Load the PowerShell Cmdlets and Get Cmdlet Help dansimp b6ae5460-2c3a-4030-b132-394d9d5a541e dansimp dansimp mdop, appcompat, virtualization deploy library w10 11/02/2016

How to Load the PowerShell Cmdlets and Get Cmdlet Help

What this topic covers:

Requirements for using PowerShell cmdlets

Review the following requirements for using the App-V PowerShell cmdlets:

Requirement Details

Users can run App-V Server cmdlets only if you grant them access by using one of the following methods:

  • When you are deploying and configuring the App-V Server:

    Specify an Active Directory group or individual user that has permissions to manage the App-V environment. See [How to Deploy the App-V 5.1 Server](how-to-deploy-the-app-v-51-server.md).

  • After youve deployed the App-V Server:

    Use the App-V Management console to add an additional Active Directory group or user. See [How to Add or Remove an Administrator by Using the Management Console](how-to-add-or-remove-an-administrator-by-using-the-management-console51.md).

Cmdlets that require an elevated command prompt

  • Add-AppvClientPackage

  • Remove-AppvClientPackage

  • Set-AppvClientConfiguration

  • Add-AppvClientConnectionGroup

  • Remove-AppvClientConnectionGroup

  • Add-AppvPublishingServer

  • Remove-AppvPublishingServer

  • Send-AppvClientReport

  • Set-AppvClientMode

  • Set-AppvClientPackage

  • Set-AppvPublishingServer

Cmdlets that end users can run, unless you configure them to require an elevated command prompt

  • Publish-AppvClientPackage

  • Unpublish-AppvClientPackage

To configure these cmdlets to require an elevated command prompt, use one of the following methods:

Method More resources

Run the Set-AppvClientConfiguration cmdlet with the -RequirePublishAsAdmin parameter.

  • [How to Manage Connection Groups on a Stand-alone Computer by Using PowerShell](how-to-manage-connection-groups-on-a-stand-alone-computer-by-using-powershell51.md#bkmk-admin-only-posh-topic-cg)

  • [How to Manage App-V 5.1 Packages Running on a Stand-Alone Computer by Using PowerShell](how-to-manage-app-v-51-packages-running-on-a-stand-alone-computer-by-using-powershell.md)

Enable the “Require publish as administrator” Group Policy setting for App-V Clients.

[How to Publish a Package by Using the Management Console](how-to-publish-a-package-by-using-the-management-console-51.md)

 

 

Loading the PowerShell cmdlets

To load the PowerShell cmdlet modules:

  1. Open Windows PowerShell or Windows PowerShell Integrated Scripting Environment (ISE).

  2. Type one of the following commands to load the cmdlets for the module you want:

App-V component Command to type

App-V Server

Import-Module AppvServer

App-V Sequencer

Import-Module AppvSequencer

App-V Client

Import-Module AppvClient

Getting help for the PowerShell cmdlets

Starting in App-V 5.0 SP3, cmdlet help is available in two formats:

Format Description

As a downloadable module

To download the latest help after downloading the cmdlet module:

  1. Open Windows PowerShell or Windows PowerShell Integrated Scripting Environment (ISE).

  2. Type one of the following commands to load the cmdlets for the module you want:

App-V component Command to type

App-V Server

Update-Help -Module AppvServer

App-V Sequencer

Update-Help -Module AppvSequencer

App-V Client

Update-Help -Module AppvClient

 

On TechNet as web pages

See the App-V node under [Microsoft Desktop Optimization Pack Automation with Windows PowerShell](https://technet.microsoft.com/library/dn520245.aspx).

Displaying the help for a PowerShell cmdlet

To display help for a specific PowerShell cmdlet:

  1. Open Windows PowerShell or Windows PowerShell Integrated Scripting Environment (ISE).

  2. Type Get-Help <cmdlet>, for example, Get-Help Publish-AppvClientPackage.

Got a suggestion for App-V? Add or vote on suggestions here. Got an App-V issue? Use the App-V TechNet Forum.