Detect Hyper-V in use?

Does any one have relevance to detect that a server is leveraging Hyper V to support guests?

  • i believe Hyper-V is in general part of Win2016/2019 so not sure if check for service or feature may be enough.

I think WMI may be your best option here

Q: string values of selects "ElementName from MSVM_ComputerSystem where caption = 'Virtual Machine'  " of wmis "root/virtualization/v2" 
A: Win10-21H1LTSC
A: Win10IPENT
A: Win11
A: WinXP
A: Win98
A: Win7
A: Win10
T: 10.769 ms
I: plural string
3 Likes