Hi LucD,
thanks you have been very helpfull. Unfortunatly im still in a bit of a tangle, im using the following commad piping the customization in as your example:
New-VM -Name VMSTORE23 -VMHost $esxhost -Datastore $datastore -DiskMB 20000 -MemoryMB 2048 -NumCpu 2 -NetworkName "Vlan 6 Virtual Machine Network" | Get-NetworkAdapter | Set-NetworkAdapter -Type Vmxnet3 -MacAddress 00:50:56:bb:00:2b
But recive the folowwing error:
2/14/2011 3:10:57 PM Get-NetworkAdapter The pipeline has been stopped.
At :line:39 char:18
+ Get-NetworkAdapter <<<< | Set-NetworkAdapter -Type Vmxnet3 -MacAddress 00:50:56:bb:00:2b
2/14/2011 3:10:57 PM Set-NetworkAdapter The MAC address is invalid or is not in the valid range 00:50:56:00:00:00 - 00:50:56:3F:FF:FF.
At :line:39 char:39
+ Get-NetworkAdapter | Set-NetworkAdapter <<<< -Type Vmxnet3 -MacAddress 00:50:56:bb:00:2b