You can use example scripts that invoke Horizon APIs and use these scripts to perform administrator tasks. You can also modify these scripts to perform administrative tasks based on your requirements.
Prerequisites
- Complete the steps to install Omnissa Horizon PowerCLI and set up the Horizon PowerCLI module. See, [Set Up the Horizon PowerCLI Module](SetUptheHorizonHorizon PowerCLIModule.md).
Procedure
-
Download the
Hv.Helpermodule from the Modules section at [https://github.com.Horizon PowerCLI-Example-Scripts](https://github.com/Horizon PowerCLI-Example-Scripts). -
Use the
$env:PSModulePathcommand to find out the modules path in your Windows PowerShell session and copy theHv.Helpermodule to that location. -
Use the following command to load the
Hv.Helpermodule into your Windows PowerShell session and start using the scripts.Get-Module -ListAvailable 'Hv.Helper' | Import-Module; Get-Command -Module 'Hv.Helper'
Was this page helpful?