Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Get MAC address of VM running in cluster

$
0
0

Hi,

I have FOC and which have several Hyperv hosts. I want to get the MAC address of a VM located in the FOC.

Now to do that i run the following command from the Management Server (which is of course not part of FOC)

$HyperVHost = Read-host -prompt 'Input HyperV host name'

$VMName = Read-host -prompt 'Input VM Name'

Get-networkAdapter -ComputerName $HyperVHost -VMname $VMName | Select -Property MacAddress

That requires me to find where the VM is located and then enter the HyperV host name. Is there anyway to find the mac address for a VM located in a cluster? or maybe find what host the vm is hosted in a FOC?

Can i run powershell get-clustergroup remotly?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>