11/15/2022 0 Comments Vmware horizon view client add server![]() ![]() The commands in the following example use the View API service ConnectionServer and method ConnectionServer_Listand assign the results to variable $hvServers1. Remember we have access to 100 percent of the View API!įirst, let’s use a simple View API command and get a list of all the Horizon Connection Servers in the pod. Let’s run a couple of commands and start to explore how we can use the VMware PowerCLI. The ExtensionData property (and now the $Services1variable) holds access to the entire View API. Looking at the View API reference documentation you will start to recognize some of these entries. $Services1=$Global:DefaultHVServers.ExtensionData To make working with this property a bit easier we will assign it to a variable $Services1 and take a look. You can access this variable with $Global:DefaultHVServers.Īll the interesting stuff is really under ExtensionData. You are prompted for credentials, but you could alternatively include your credentials in the command.Ĭonnect-HVServer -server -user demoadmin -password mypassword -domain mydomainĪ global variable called DefaultHVServers is created, which stores information about connections to the Horizon Connection Servers. In this example, is one of the Horizon Connection Servers. You can now connect to the Horizon Connection Server and the View API using your credentials:Ĭonnect-HVServer -server Get-Module -ListAvailable VMware* | Import-Module To load all the modules, use the following command: You can import all of the VMware modules or just the Horizon 7 module, though you need the Core module too if you plan on interacting with VMware vSphere. Launch PowerShell and load any of the VMware modules required.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |