MAC address conflict

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46948
    Profile photo of Adrian Vasile
    Adrian Vasile
    Participant

    Hi,

    I wanted to get all the MAC address of virtual machines from SCVMM. I could use the script Get-VirtualNetworkAdapter -All | where {$_.PhysicalAddress -ne $null} | group -Property PhysicalAddress | ? {$_.Count -gt 1} | % {$_.Group} | Select-Object Name, PhysicalAddress then export to a CSV file.
    But I want to create a script to compare if the MAC addresses of VMs from a Hyper-V node are in the range of the ones configured in the Hyper-V node and then to display only these.
    How can I manage this? I highly appreciate a help here.

    Thank you!

    • This topic was modified 2 months, 2 weeks ago by Profile photo of Adrian Vasile Adrian Vasile.
    #48271
    Profile photo of Don Jones
    Don Jones
    Keymaster

    If you could query the ones configured, and have those in a collection, then you could use Compare-Object to see which in-use ones didn't exist in that collection.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.