Obtaining IP address of Node inside Failover cluster

Štechmüller, Petr 20 Reputation points
2026-06-09T11:37:19.3+00:00

Hello,

I would like to know how to obtain IP address of each node within a failover cluster. In my current setup, I have two nodes creating a failover cluster. In each node is running multiple VMs. I'm connected to one of the (cluster) node. What PowerShell command do I have to write to obtain network information about VMs? So far I was only able to obtain some basic info using following command:

Get-ClusterGroup |
Where-Object { $_.GroupType -eq 'VirtualMachine' } |
ForEach-Object {
	[PSCustomObject]@{
		Id           = $_.Id
		Name         = $_.Name
		OwnerNode    = $_.OwnerNode.Name
		State        = $_.State.ToString()
	}
} | ConvertTo-Json
                    Where-Object { $_.GroupType -eq 'VirtualMachine' } |
                    ForEach-Object {
                        [PSCustomObject]@{
                            Id           = $_.Id
                            Name         = $_.Name
                            OwnerNode    = $_.OwnerNode.Name
                            State        = $_.State.ToString()
                        }
                    } | ConvertTo-Json

With a following example output:

[
    {
        "Id":  "f1140aa6-4940-4b0d-8cc8-14c1e40b6f40",
        "Name":  "Fake-VM1",
        "OwnerNode":  "vhyperv2025cl1",
        "State":  "Online"
    },
    {
        "Id":  "8244e560-0527-42ca-877b-19b7654a900f",
        "Name":  "Fake-VM2",
        "OwnerNode":  "vhyperv2025cl2",
        "State":  "Online"
    }
}

Thank you

Windows for business | Windows Server | Storage high availability | Virtualization and Hyper-V
0 comments No comments

Answer accepted by question author

Chen Tran 12,750 Reputation points Independent Advisor
2026-06-09T12:29:58.51+00:00

Hello Štechmüller,

Thank you for posting question on Microsoft Windows Forum!

Well! Since you are already connected to one of the cluster nodes, you can leverage the Hyper-V and Failover Clustering PowerShell modules together to query all VMs across the entire cluster and pull their IP addresses.

If your VMs have Hyper-V Integration Services enabled, Hyper-V reports the guest IP addresses directly to the host. You can fetch this by piping Get-VM into Get-VMNetworkAdapter. You can try to run this PowerShell cmdlet to see the VM Name, Network Adapter Name, and all assigned IP addresses.

  • Get-ClusterGroup | Where-Object {$_.GroupType -eq "VirtualMachine"} | Get-VM | Get-VMNetworkAdapter | Select-Object VMName, Name, IPAddresses

Alternatively, to retrieve a list of all VMs on your host, gets their network adapters, and displays the VM name, IP address(es), switch, and MAC address by running below cmdlet.

  • Get-VM | Get-VMNetworkAdapter | Select-Object VMName, IPAddresses, SwitchName, MacAddress

Please note: If the IPAddresses field comes back empty for some VMs, it might indicate that Integration Services are outdated or disabled inside that specific VM guest OS or the VM is currently powered off.

For further reference regarding the cmdlets.

Hope the above information is helpful! If it is. Free feel to hit "Accepted" for benefitting others in community having the same query too.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.