简体   繁体   English

如何从SCVMM 2008 R2获取IP地址

[英]How to get IP addresses from SCVMM 2008 R2

I took IP addresses from Hyper-V 2008 R2 Stand alone using PowerShell with this library: https://pshyperv.codeplex.com/ 我使用带有以下库的PowerShell从Hyper-V 2008 R2 Standalone中获取了IP地址: https : //pshyperv.codeplex.com/

It is possible to get IP Addresses from SCVMM 2008 R2 using Windows PowerShell-Virtual Machine Manager? 是否可以使用Windows PowerShell-虚拟机管理器从SCVMM 2008 R2获取IP地址? There exist a library similary with pshyperv.codeplex.com from SCVMM 2008 R2? 是否存在与SCVMM 2008 R2中的pshyperv.codeplex.com类似的库?

Don't know if this works with Hyper-V 2008R2 but it works with 2012R2. 不知道这是否适用于Hyper-V 2008R2,但适用于2012R2。

First run: 首轮:

Import-Module virtualmachinemanager

Than you can try either: 比您可以尝试:

Get-VM  | Get-VirtualNetworkAdapter | select name,ipv4addresses

or: 要么:

Get-SCVirtualMachine | Get-SCVirtualNetworkAdapter | select name,ipv4Addresses

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM