

Click the green Clone or download button and then click Download ZIP.Ĭ. Install the Horizon advanced functions:Ī. See the VMware PowerCLI User’s Guide for more information. Allow Execution of Local Scripts Set-ExecutionPolicy RemoteSignedĬ. For Windows, open a Windows PowerShell (Admin) console and run the following command. For full instructions, see the PowerCLI Installation Guide.Ī. Know where to find the reference documentationġ.Download and install the advanced functions.Be sure to visit the VMware PowerCLI Community Repository site on GitHub periodically to get new functions and consider contributing your own. These functions allow you to easily interact with pools, farms, and desktops without having to write scripts from scratch. To get you started quickly, the Horizon team has put together a set of functions that cover common operations.

The View API is a web service and is available from any Connection Server within a Horizon pod. To accompany the VMware PowerCLI module, there is also public View API Reference Documentation for Horizon 7 and 8 and access to the full public View API. For example, you can write a script to get a list of datastores from a vCenter Server inventory and use that information to select the best datastores on which to create a pool. You can also easily build federated scripts across VMware products. This module allows you to connect and run VMware PowerCLI scripts for Horizon from remote workstations or servers, such as an administrator’s desktop, using different credentials. This functionality provides a convenient way to access the full View API and all the capabilities available through the Horizon Console. These cmdlets allow you to connect and disconnect from the View API service. Even though the Horizon PowerCLI module contains only two cmdlets, they are extremely useful.
