Search This Blog

Tuesday, July 2, 2013

How to fetch VM IP address from SCVMM using powershell

$VM = Get-SCVirtualMachine -Name "VMname"
$ValuesMap = @{}
$ValuesMap.Add("NetworkAddressIPv4", $null)
$map=Read-SCGuestInfo -VM $VM -KvpMap $ValuesMap
$map.KvpMap.NetworkAddressIPv4

UPD: another cmdlet that give IP specific info is Get-SCIPAddress, but KVP is more flexible if you also need other VM information from Integration services channel.

No comments: