Is there a way to detect if a windows operating system is running on Hyper-V? I am going to implement it in Java (I found out that there is a way for C++ but not for java) so that my application will be able to recognize if it is running on native or virtual(explicitly Hyper-V) system.
Asked
Active
Viewed 715 times
0
-
1Out of interest, what do you intend to use that information for? This sounds to me like it might be a case of [the XY problem](http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem); does your program really need to know this specific piece of information? – Andrzej Doyle Jan 13 '15 at 12:24
1 Answers
1
I think your problem should be in executing a WMI query from java. Libraries like jWMI could help you.
Also you could try to find an answer on the following post.
After that you could use your code written in C++ to easily execute your windows discovery.
Hope it helps.