how do find the VM name with only the IP address of the VM?
$IPtoSearch = "8.8.8.8" Get-VM | select name,@{l="IP";e={$_.ExtensionData.guest.net.ipaddress | where {($_ -as [ipaddress]).AddressFamily -eq "InterNetwork"}}} | where IP -like "*$IPtoSearch*"
$IPtoSearch = "8.8.8.8"
Get-VM | select name,@{l="IP";e={$_.ExtensionData.guest.net.ipaddress | where {($_ -as [ipaddress]).AddressFamily -eq "InterNetwork"}}} | where IP -like "*$IPtoSearch*"