I have deployed a vCenter 6.0 host using the automated deployment method which has worked fine, now I want to run some commands to join the vcenter to the domain. I have the commands I need but need a way to run these again the vcenter in an automated way - I have tested the commands by accessing the vcenter console with Putty and running them sequentially which work.
What I need is a way to automate the running of these scripts which is compatible with vcenter 6.0, for vcenter 5.5 I used the WinSCP library to upload and then execute a configuration file which worked fine however this doesnt seem to work for vcenter 6.0.
So the question is how can I remotely access the vCenter 6.0 console and run commands in an automated way - what I really need is a way to run these commands from a C# application. Any ideas?