Anyone know how to change to static MAC?

May 5, 2009 at 8:26 PM

I'm using the library to create a batch of VM's, but I want each VM to have a Static MAC.  Anyone know how to script that in Powershell?


May 9, 2009 at 11:55 AM

add-vmNic already takes a -mac parameter :-)  Just specify that.  





May 11, 2009 at 6:33 PM

I don't want to manage the MAC address generation, I just don't want the MAC address to change later on.  I'm turning the VM on, waiting 10 seconds, and turning it off again so Hyper-V can create manage MAC address generation.  I just want to change the MAC address from Dynamic to Static.

Jun 7, 2009 at 9:49 AM

It won't change. A dynamic address is assigned at first boot and then remains the same for the life of the vm.