powershell 从其注册表中获取Hyper-V VM的VM主机

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell 从其注册表中获取Hyper-V VM的VM主机相关的知识,希望对你有一定的参考价值。

(Get-Item -Path 'HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters').GetValue('HostName')

以上是关于powershell 从其注册表中获取Hyper-V VM的VM主机的主要内容,如果未能解决你的问题,请参考以下文章

Hyper V server 2012 r2 常用的powershell命令

Hyper-V 2016 系列教程39 在 Windows 10中使用 Hyper-V 和 Windows PowerShell

PowerShell 创建Hyper-v 虚拟机

powershell 仅启用Hyper-V PowerShell

powershell 各种Hyper-V相关的PowerShell

Windows Server 2012 R2 Hyper-V PowerShell远端安装Hyper-V