Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Running commands on VMs remotely

$
0
0

Hi Everyone

New to all of this so please bear with me!

Starting a new project and looking to compare between the use of Hyper V and ESXi.  

The project is to grab vms regardless of state, turn them on and execute scripts stored on a vm drive. The script execution has to be performed / issued by a user. C# is the main underlying code but we can potentially put in references to use powershell scripts / whatever else if we can achieve this using hyper v.

I know from doing a bit of reading on ESXi that we can do this using a number of ways - vmrun to start, stop and run commands on the actual vm itself. using other vmware libraries and APIs.

I have read that powershell commands include starting vms, taking snapshots, shutting down vms but I was wondering if we can get into the actual VM remotely / somehow in-order to, for example, run a script which is stored on that VMs C drive.

Has anyone tried this / is it do-able? -  I have had no luck finding any examples of what we need. 

Kind Regards,

Ashley


Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>