cloned machines have the same MAC address on ‘Hyper-V Ethernet Adapter’

Met a problem yesterday when 2 Windows Server 2016 machines from the same cloned (syspreped) image were not able to ping each other but can ping any other network devices.

After some troubleshooting we noticed that the MAC address are the same on the ‘Hyper-V Ethernet Adapter’ on both machines. The workaround is go to Hyper-V manager, change the virtual switch from external to internal, change it back again to external, this
cause the Hyper-V Ethernet Adapter to get a new MAC address.

This workaround is not good because we have to do the same for hundreds of computers.

Is there a better way to do this like a PowerShell command or a script or a tool?

Valuable skills are not learned, learned skills aren’t valuable.

Read full post . . . .

Go Que Newsroom