Getting Started with VMware Horizon cmdlets
Provides cmdlets for automating VMware Horizon features.
Step 1: Connect to Environment
To setup a connection you should use the Connect-HVServer command. Run the code sample below to connect.
Connect-HVServer -Server server -User username -Password pass -Domain domain
$cs = Connect-HVServer -Server server -Username user -Password pass -Domain domain; Connect-HVServer -Server server -SessionId $cs.SessionSecret
Connect-HVServer -Server server -User username@domain -Password pass
Connect-HVServer -Server server