0

As I can see there is no way to use WMI in C# since System.Automation is not supported in .NET Core.

What is a proper way to manipulate Hyper-V from C# on Windows Nano Server?(For ex: get list of virtual machines)

  • Why don't you use Powershell? You'd have to use the same commands with System.Automation – Panagiotis Kanavos May 05 '17 at 16:12
  • @PanagiotisKanavos And what about the information on [this](https://learn.microsoft.com/en-us/windows-server/get-started/powershell-on-nano-server) page? – Jeroen Heier May 05 '17 at 18:27
  • @JeroenHeier that page says that *Powershell itself* is built on top of .NET Core. Powershell isn't a wrapper over WMI, so it doesn't need System.Automation. – Panagiotis Kanavos May 08 '17 at 06:57

0 Answers0