Quantcast
Viewing latest article 3
Browse Latest Browse All 247

What is the proper way to check if HyperV is running?

I am trying to write a powershell script to install and set up Hyper-V machines. The install seems to be ok, however, I get contradictory responses from the system.Basically, I use the (gcim Win32_ComputerSystem).HypervisorPresent to determine if HyperV is running.

It return False.

There is a similar class with the same member (gcim CIM_ComputerSystem).HypervisorPresent what is also returning False.

Also found this question How do you check to see if Hyper-V is enabled using PowerShell? and this state property is Enabled

Do I miss something? These queries aren't the same? Could you point if any of these are deprecated?Am I totally fooled, and Enabled means the system is capable to run HyperV, but actually it is not running?


Viewing latest article 3
Browse Latest Browse All 247

Trending Articles



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