Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

How to get only VMs in Hyper-V using c# which is locale independent

$
0
0

I am trying to list only VMs. Currently I am using below query

"SELECT * FROM Msvm_ComputerSystem where Caption=\"Virtual Machine\"".

This is giving me the correct output but in english locale only.

In different locale only it is returning null as caption seems to be locale dependent.

What is the best way to list only VMs which is locale independent?



Viewing all articles
Browse latest Browse all 8743

Trending Articles



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