Assign static mac id for virtual machine with Powershell on SCVMM

A few weeks ago, i had to assign static mac ids for virtual machines. I wrote this script to assign static mac ids to virtual machines on SCVMM 2008 with Powershell:

1
2
3
4
5
Add-PSSnapin -name Microsoft.SystemCenter.VirtualMachineManager
Get-Vmmserver localhost
$VMNo = $args[0]
$MAC = New-PhysicalAddress -Commit
New-VirtualNetworkAdapter -VM $VMNo -PhysicalAddress $MAC

You can identify your VM’s with their Mac ID’s. So, I think assigning static mac id is better. I hope, it works for you.

Tags: , , ,


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply