Powershell

This one will change the virtual network on all of your virtual machines.  Very useful for when you change the name of a network or create a new one.

Get-VM | Get-NetworkAdapter | Set-NetworkAdapter -NetworkName "New Network"

: http://halr9000.com/article/577

( Show All | Hide All ) Post a comment now » Sorry, the comments are closed.
Wally
2008-08-08 03:16:36

One hardly wants to move ALL vm’s to a new network, most of the time you’d want to move from one network to another so it would be something like this ?

Get-VM | Get-NetworkAdapter | where { $_.NetworkName -eq ‘Old Network’ } | Set-NetworkAdapter -NetworkName “New Network”

2008-08-08 07:40:18

Generally speaking, yes. :) Thanks for the addition.

Sorry, the comment form is closed at this time.

  • Microblog

  • Recent Posts

  • Recent Comments

  • meta