{"id":12231,"date":"2012-03-14T10:26:57","date_gmt":"2012-03-14T10:26:57","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=12231"},"modified":"2012-03-14T10:26:57","modified_gmt":"2012-03-14T10:26:57","slug":"change-windows-server-8-hyper-v-vm-virtual-switch-connection-using-powershell","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=12231","title":{"rendered":"Change Windows Server 8 Hyper-V VM Virtual Switch Connection Using PowerShell"},"content":{"rendered":"<p>I\u2019m building a demo lab on my \u201cbeast\u201d laptop and want to make it as mobile as possible, independent of IP addresses, while retaining Internet access.&#160; I do that by placing the VMs on an internal virtual switch and running a proxy on the parent partition or in a VM (dual homed on external virtual switch).&#160; I accidentally built my VMs on an external virtual switch and wanted to switch them to an internal virtual switch called Internal 1.&#160; I could spend a couple of minutes going through every VM and making the change.&#160; Or I could just run this in an elevated PowerShell window, as I just did on my Windows 8 (client OS) machine:<\/p>\n<p><font face=\"Bell MT\">Connect-VMNetworkAdapter \u2013VMName * \u2013SwitchName Internal1<\/font><\/p>\n<p>Every VM on my PC was connected to the Internal1 virtual switch.<\/p>\n<div style=\"padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:5736a301-8301-4430-a64e-252acea8bb8e\" class=\"wlWriterEditableSmartContent\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/Hyper-V\" rel=\"tag\">Hyper-V<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Windows+Server+8\" rel=\"tag\">Windows Server 8<\/a>,<a href=\"http:\/\/technorati.com\/tags\/PowerShell\" rel=\"tag\">PowerShell<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Scripting\" rel=\"tag\">Scripting<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Networking\" rel=\"tag\">Networking<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Windows+8\" rel=\"tag\">Windows 8<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019m building a demo lab on my \u201cbeast\u201d laptop and want to make it as mobile as possible, independent of IP addresses, while retaining Internet access.&#160; I do that by placing the VMs on an internal virtual switch and running a proxy on the parent partition or in a VM (dual homed on external virtual &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=12231\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Change Windows Server 8 Hyper-V VM Virtual Switch Connection Using PowerShell&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[181,80,87,189,109,119],"class_list":["post-12231","post","type-post","status-publish","format-standard","hentry","category-hyper-v","tag-hyper-v","tag-networking","tag-powershell","tag-scripting","tag-windows-8","tag-windows-server-8"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/12231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12231"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/12231\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}