Playing around with VM´s on Laptop and Virtual switches   Leave a comment

I have a lot of VMs on my laptop, and i need to change the switch on these machines sometimes, since I’m moving around i need to be able to change the switch that they are connected to. This is time consuming and not to mention booooring so lets look @ powershell and how this can help me.

Get-VMNetworkAdapter -VMName * | Connect-VMNetworkAdapter -SwitchName External

Problem solved, the first part is get all network connectors from * and pipe/connect it to my virtual switch named External



Posted May 6, 2012 by jorgen brandelius in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: