[英]How to get Hyper-V VM Guest OS
I am trying to get Hyper-V Virtual machine guest OS details.我正在尝试获取 Hyper-V 虚拟机来宾操作系统详细信息。 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#?
有没有办法使用 WMI C# 从 Hyper-V 虚拟机获取来宾操作系统详细信息?
I found it here: https://docs.microsoft.com/en-us/windows/win32/hyperv_v2/getsummaryinformation-msvm-virtualsystemmanagementservice#examples我在这里找到它: https : //docs.microsoft.com/en-us/windows/win32/hyperv_v2/getsummaryinformation-msvm-virtualsystemmanagementservice#examples
We just need to add GuestOperatingSystem (106) in the requestedInformation.我们只需要在requestedInformation中添加GuestOperatingSystem(106)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.