Export (0) Print
Expand All

How to Load the PowerShell Cmdlets and Get Cmdlet Help

Updated: November 6, 2014

Applies To: Application Virtualization 5.0

What this topic covers:

How to load the PowerShell cmdlets

  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

How to display the help for the PowerShell cmdlets

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

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

Viewing examples of some commonly used PowerShell cmdlets

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

  2. Use the example syntax in the following table to run the desired command.

     

    Command Description

    Get-AppvVirtualProcess

    Returns a list of the virtual processes running on a specific computer.

    Add-AppvPublishingServer -Name samplepub -URL https://contosopubserver:<port>/

    Adds a publishing server to the App-V 5.0 Client.

    Sync-AppvPublishingServer -Name samplepub

    Synchronizes the App-V 5.0 Client with the publishing server named samplepub.

    Add-AppvClientPackage \\server\share\sample.appv

    Adds a package to the App-V 5.0 Client.

    Publish-AppvClientPackage –Name samplepackage

    Publishes a package to the current user.

    Add-AppvClientPackage \\server\share\sample.appv | Publish-AppvClientPackage -Global

    Adds and globally publishes a package.

    Get-AppvVirtualProcess | Select -ExpandProperty AppvPackageData

    Shows which processes are running virtually and shows the associated virtual environment.

See Also

-----
You can learn more about MDOP in the TechNet Library, search for troubleshooting on the TechNet Wiki, or follow us on Facebook or Twitter.
-----
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft