Hi,As we know we are following below steps to connect to virtual machine
Open Hyper-V Manager. Click Start, point to Administrative Tools, and then clickHyper-V Manager.
In the results pane, under Virtual Machines, right-click the name of the virtual machine and clickConnect.
The Virtual Machine Connection command prompt opens and we can login and execute commands.
How to achieve this programmatically in C# without GUI?(how to remotely execute commands on a VM and get results programmatically using C#).We have performed start/stop/pause/reset operations on VM using WMI but not sure about connecting to VM?
Thanks&Regards
Venkatesh Jayaramu