I am trying to get Hyper-V Virtual machine guest OS details. But could not find any way to do that. Is there any way to get guest OS details from Hyper-V virtual machine using WMI C#?
Asked
Active
Viewed 657 times
0
-
Use PowerShell: https://docs.microsoft.com/en-us/powershell/module/hyper-v/?view=win10-ps – David Browne - Microsoft Mar 26 '20 at 17:47
-
There is no way to get it with Hyper-V PowerShell. This post might be helpful: https://stackoverflow.com/questions/38096777/is-there-a-way-to-get-vms-operating-system-name-from-hyper-v-using-powershell – Jarek Danielak Mar 26 '20 at 18:05
1 Answers
0
I found it here: https://docs.microsoft.com/en-us/windows/win32/hyperv_v2/getsummaryinformation-msvm-virtualsystemmanagementservice#examples
We just need to add GuestOperatingSystem (106) in the requestedInformation.