{"id":2418,"date":"2013-12-15T00:01:00","date_gmt":"2013-12-15T00:01:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2013\/12\/15\/weekend-scripter-configure-hyperv-on-windows-8-computer\/"},"modified":"2013-12-15T00:01:00","modified_gmt":"2013-12-15T00:01:00","slug":"weekend-scripter-configure-hyperv-on-windows-8-computer","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/weekend-scripter-configure-hyperv-on-windows-8-computer\/","title":{"rendered":"Weekend Scripter: Configure HyperV on Windows 8 Computer"},"content":{"rendered":"<p><strong>Summary<\/strong>: Guest blogger, Greg Lindsay, tells how to configure Hyper-V on a computer running Windows&nbsp;8.1 or Windows&nbsp;8.<\/p>\n<p>Microsoft Scripting Guy, Ed Wilson, is here. Today we welcome a new guest blogger, Greg Lindsay. In Greg&rsquo;s own words: I am a technical writer for Windows Server. I have written documentation for Network Access Protection (NAP), DNS, DHCP, and IP Address Management (IPAM).<\/p>\n<p>You might already have experience using <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=3702\" target=\"_blank\">Windows Virtual PC<\/a> in Windows&nbsp;7, which enables you to run virtual machines on a client operating system. You can still install Windows Virtual PC in Windows&nbsp;8, but be aware that with Windows&nbsp;8 there is now a requirement that the host computer&rsquo;s microprocessor support SLAT. For more information, see <a href=\"http:\/\/social.technet.microsoft.com\/wiki\/contents\/articles\/1401.hyper-v-list-of-slat-capable-cpus-for-hosts.aspx\" target=\"_blank\">Hyper-V: List of SLAT-Capable CPUs for Hosts<\/a>.<\/p>\n<p>The good news is that if your processor supports SLAT, you don&rsquo;t need to download and install Windows Virtual PC because Hyper-V Manager is already included in Windows&nbsp;8.1 and Windows&nbsp;8 under <strong>Programs and Features<\/strong>. Hyper-V manager has several advantages over Windows Virtual PC, including the ability to create virtual switches with VLAN tagging and virtual machine snapshots.<\/p>\n<p style=\"padding-left:30px\"><strong>Note<\/strong> &nbsp;If you installed a 32-bit version of Windows&nbsp;8, you won&rsquo;t be able to create and manage local virtual machines. To fully manage virtual machines by using the host computer, you must install the 64-bit version of Windows&nbsp;8.1 or Windows&nbsp;8.<\/p>\n<p>The Hyper-V feature is not installed by default in Windows&nbsp;8. To get it, you can use the following Windows PowerShell command:<\/p>\n<p style=\"padding-left:30px\">Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V &ndash;All<\/p>\n<p>You can also install it via the Control Panel in Windows under <strong>Turn Windows features on or off<\/strong>, as shown here:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/8662.wes-12-15-13-1.png\"><img decoding=\"async\" title=\"Image of menu\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/8662.wes-12-15-13-1.png\" alt=\"Image of menu\" \/><\/a><\/p>\n<p style=\"padding-left:30px\"><strong>Important<\/strong>&nbsp;&nbsp;If you know that your processor supports SLAT, but you still get an error message that states Hyper-V cannot be installed, you might need to enable virtualization in the BIOS. The location of this setting will depend on the manufacturer and BIOS version. The following image shows an example of the required settings (under <strong>Security<\/strong>) in a Hewlett-Packard BIOS for an Intel processor:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/6201.wes-12-15-13-2.png\"><img decoding=\"async\" title=\"Image of settings\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/6201.wes-12-15-13-2.png\" alt=\"Image of settings\" \/><\/a><\/p>\n<p>After you have Hyper-V installed, check out <a href=\"https:\/\/devblogs.microsoft.com\/scripting\/using-powershell-to-set-up-hyper-v\/\" target=\"_blank\">Using PowerShell to Set Up Hyper-V<\/a>.<\/p>\n<p style=\"padding-left:30px\"><strong>Note&nbsp;<\/strong> Hyper-V Manager running on Windows&nbsp;8.1 or Windows Server&nbsp;2012&nbsp;R2 also supports enhanced session mode, which allows you to more easily share local resources among virtual machines. For example, enhanced session mode enables you to copy text from a Windows PowerShell session on one virtual machine and paste it into the Windows PowerShell session on another virtual machine. For more information, see <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/dn282274.aspx\" target=\"_blank\">Virtual Machine Connection &#8211; Enhanced Session Mode Overview<\/a>.<\/p>\n<p>Hyper-V Manager in Windows&nbsp;8.1 and Windows&nbsp;8 brings the power of Hyper-V to your client computer. If you&rsquo;ve used Hyper-V Manager before, you will recognize it immediately:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/0830.wes-12-15-13-3.png\"><img decoding=\"async\" title=\"Image of menu\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/0830.wes-12-15-13-3.png\" alt=\"Image of menu\" \/><\/a><\/p>\n<p>If you haven&rsquo;t tried Hyper-V yet, you should definitely check it out!<\/p>\n<p>Also see these resources:<\/p>\n<ul>\n<li><a href=\"http:\/\/social.technet.microsoft.com\/wiki\/contents\/articles\/7704.client-hyper-v-survival-guide.aspx\" target=\"_blank\">Client Hyper-V Survival Guide<\/a><\/li>\n<li><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/hh857623.aspx\" target=\"_blank\">Client Hyper-V<\/a><\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/b\/b8\/archive\/2011\/09\/07\/bringing-hyper-v-to-windows-8.aspx?Redirected=true\" target=\"_blank\">Bringing Hyper-V to Windows&nbsp;8<\/a><\/li>\n<li><a href=\"http:\/\/www.elmajdal.net\/Win8\/Installing_Hyper-V_in_Windows_8.aspx\" target=\"_blank\">Installing Hyper-V in Windows&nbsp;8<\/a><\/li>\n<\/ul>\n<h2>Tip<\/h2>\n<p>If you&rsquo;ve been trying&nbsp;<a href=\"https:\/\/devblogs.microsoft.com\/scripting\/weekend-scripter-configure-hyperv-on-windows-8-computer\/\" target=\"_blank\">Hyper-V in Windows 8<\/a>, you might be interested in this tip&#8230;<\/p>\n<h4><b>Adjust Network Adapter Binding Order in Windows 8 with Hyper-V<\/b><\/h4>\n<p>When you add a new internal or external virtual switch in Hyper-V, you might notice that networking is slower than usual. This might mean you need to adjust the network adapter binding order.<\/p>\n<p>Virtual switches in Hyper-V are used to connect network adapters on virtual machines to other virtual machines and to the virtual host. If you create an internal or external virtual switch, a new virtual network adapter is added to the host computer and promoted to the top of the binding order. This is important because DNS always starts with the preferred network adapter, which is the one that is first in the binding order. If DNS has to wait for a timeout period before moving to your LAN DNS servers, this can cause a significant delay in all network requests.<\/p>\n<p>Use <b>Get-NetAdapterBinding<\/b> to view the current binding order on your computer:<\/p>\n<p style=\"margin-left:30px\">PS C:\\&gt; Get-NetAdapterBinding | where bindname -eq &#039;tcpip&#039;<\/p>\n<p style=\"margin-left:30px\">Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DisplayName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ComponentID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enabled<\/p>\n<p style=\"margin-left:30px\">&#8212;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;-<\/p>\n<p style=\"margin-left:30px\">Ethernet 2 (Internal Network)&nbsp; Internet Protocol Version 4 (TCP\/IPv4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms_tcpip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; True<\/p>\n<p style=\"margin-left:30px\">Ethernet&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internet Protocol Version 4 (TCP\/IPv4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms_tcpip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; True<\/p>\n<p>In this example, the network adapter that is connecting to the internal virtual switch is first in the binding order.<\/p>\n<p>If you type <b>nslookup<\/b>, you&rsquo;ll see that the DNS server that is being used first is the one assigned to the first adapter in the binding order.<\/p>\n<p>Use <b>ipconfig<\/b> to verify network adapter names and TCP\/IP settings, and then modify the binding order so that the adapter with IP addressing scheme and DNS servers assigned by your corporate LAN is first. To modify the binding order, open <b>Network Connections<\/b>, press the ALT key to view the menu items, click <b>Advanced<\/b>, and then click <b>Advanced Settings<\/b>.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a.png\" border=\"0\" alt=\" \" \/><\/a><\/p>\n<p>Choose the adapter you want to move up or down, click the Up or Down arrow on the right to move the binding order, and then click <b>OK<\/b> when you are finished.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/b.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/b.png\" border=\"0\" alt=\" \" \/><\/a><\/p>\n<p>You can verify that the binding order is using your LAN adapter first by typing <b>nslookup<\/b> again. You should see your physical adapter&rsquo;s DNS server listed instead of the virtual network&rsquo;s DNS server<\/p>\n<p>~Greg<\/p>\n<p>Thank you, Greg, for writing this and sharing.<\/p>\n<p>I invite you to follow me on <a href=\"http:\/\/bit.ly\/scriptingguystwitter\" target=\"_blank\">Twitter<\/a> and <a href=\"http:\/\/bit.ly\/scriptingguysfacebook\" target=\"_blank\">Facebook<\/a>. If you have any questions, send email to me at <a href=\"mailto:scripter@microsoft.com\" target=\"_blank\">scripter@microsoft.com<\/a>, or post your questions on the <a href=\"http:\/\/bit.ly\/scriptingforum\" target=\"_blank\">Official Scripting Guys Forum<\/a>. See you tomorrow. Until then, peace.<\/p>\n<p><strong>Ed Wilson, Microsoft Scripting Guy<\/strong>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Guest blogger, Greg Lindsay, tells how to configure Hyper-V on a computer running Windows&nbsp;8.1 or Windows&nbsp;8. Microsoft Scripting Guy, Ed Wilson, is here. Today we welcome a new guest blogger, Greg Lindsay. In Greg&rsquo;s own words: I am a technical writer for Windows Server. I have written documentation for Network Access Protection (NAP), DNS, [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[473,56,271,3,61,45],"class_list":["post-2418","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-greg-lindsay","tag-guest-blogger","tag-hyper-v","tag-scripting-guy","tag-weekend-scripter","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Guest blogger, Greg Lindsay, tells how to configure Hyper-V on a computer running Windows&nbsp;8.1 or Windows&nbsp;8. Microsoft Scripting Guy, Ed Wilson, is here. Today we welcome a new guest blogger, Greg Lindsay. In Greg&rsquo;s own words: I am a technical writer for Windows Server. I have written documentation for Network Access Protection (NAP), DNS, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/2418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=2418"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/2418\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=2418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=2418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=2418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}