VMware Cloud Community
TPT
Enthusiast
Enthusiast
Jump to solution

simplist way to change mac for multiple vms

hi all

I was wondering, what's your perfered method of changing MAC for a large number of VMs? I just cloned over 8 VMs to another host and VEEAM duplicated the MAC as well. So I need to change 3 MAC for each VM and I got 8 of them to do.

I wonder if there is a quick and simple way to do this then going into settings?

Thanks

davy

Tags (3)
1 Solution

Accepted Solutions
JJustino
Enthusiast
Enthusiast
Jump to solution

Good afternoon,

    Following the line to change the mac adress of a virtual machine, preferably that VMs are off.

Get-VM teste | Get-NetworkAdapter -Name "Network adapter1" | Set-NetworkAdpater -MacAddress 00:50:56:3F:FF:FF -confirm:$false

View solution in original post

2 Replies
antonmajor
Enthusiast
Enthusiast
Jump to solution

You can script it via powercli and use the set-networkadapter cmdlet

Set-NetworkAdapter - vSphere PowerCLI Cmdlets Reference

JJustino
Enthusiast
Enthusiast
Jump to solution

Good afternoon,

    Following the line to change the mac adress of a virtual machine, preferably that VMs are off.

Get-VM teste | Get-NetworkAdapter -Name "Network adapter1" | Set-NetworkAdpater -MacAddress 00:50:56:3F:FF:FF -confirm:$false