Removed parameter -Deleting which isn't used and is a read-only property anyway Corrected automatic Logoff Minutes validation range which is 1.. rather than 1..120 Updated the validation set for delete or refresh machines after log off. From the API, valid options are Never, Delete, Refresh not Never, Delete, After Allowed selecting the AD Container when creating Linked Clones
Prerequisites/Steps to use this module:
- This module only works for Horizon product E.g. Horizon 7.0.2 and later.
- Install the latest version of Powershell, PowerCLI(6.5) or (later version via psgallery).
- Import HorizonView module by running: Import-Module VMware.VimAutomation.HorizonView.
- Import "VMware.Hv.Helper" module by running: Import-Module -Name "location of this module" or Get-Module -ListAvailable 'VMware.Hv.Helper' | Import-Module.
- Get-Command -Module "This module Name" to list all available functions or Get-Command -Module 'VMware.Hv.Helper'.
Example script to connect view API service of Connection Server:
Import-Module VMware.VimAutomation.HorizonView
Connection to view API service
$hvServer = Connect-HVServer -server <connection server IP/FQDN> $hvServices = $hvserver.ExtensionData $csList = $hvServices.ConnectionServer.ConnectionServer_List()
Load this module
Get-Module -ListAvailable 'VMware.Hv.Helper' | Import-Module Get-Command -Module 'VMware.Hv.Helper'
Use advanced functions of this module
New-HVPool -spec 'path to InstantClone.json file'