How to control processes in a Hyper-V VM's console?
-
03-07-2019 - |
Question
I want to script the building of a Hyper-V VM as part of a build process. Specifically I need to be able to launch processes, perhaps sending keys into the VM as well, but as long as I can launch processes with specific command-lines I think I'll be good.
I'm already aware of this useful library: http://www.codeplex.com/PSHyperv, but it seems to be all VM-controller-level operations rather than controlling the OS within the VM.
Solution
I recommend using PowerShell Remoting.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow