{"id":608,"date":"2023-05-21T03:54:10","date_gmt":"2023-05-20T19:54:10","guid":{"rendered":"https:\/\/me.corpse.top\/?p=608"},"modified":"2023-05-21T03:54:12","modified_gmt":"2023-05-20T19:54:12","slug":"win10%e6%89%93%e5%bc%80hyper-v","status":"publish","type":"post","link":"https:\/\/me.spacelite.top\/?p=608","title":{"rendered":"win10\u6253\u5f00hyper-V"},"content":{"rendered":"<div class=\"heading-wrapper\" data-heading-level=\"h2\">\n<h2 id=\"enable-hyper-v-using-powershell\" class=\"heading-anchor\">\u4f7f\u7528 PowerShell \u542f\u7528 Hyper-V<\/h2>\n<\/div>\n<ol>\n<li>\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u6253\u5f00 PowerShell \u63a7\u5236\u53f0\u3002<\/li>\n<li>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ol>\n<div id=\"code-try-0\" class=\"codeHeader\" data-bi-name=\"code-header\"><span class=\"language\">PowerShell<\/span><button class=\"action position-relative display-none-print\" type=\"button\" data-bi-name=\"copy\"><\/button><button class=\"action position-relative display-none-print\" type=\"button\" data-bi-name=\"copy\">\u590d\u5236<\/button><\/p>\n<div class=\"successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent\" aria-hidden=\"true\"><\/div>\n<\/div>\n<pre class=\"has-inner-focus\"><code class=\"lang-powershell\" data-author-content=\"Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All\r\n\"><span class=\"hljs-pscommand\">Enable-WindowsOptionalFeature<\/span><span class=\"hljs-parameter\"> -Online<\/span><span class=\"hljs-parameter\"> -FeatureName<\/span> <span class=\"hljs-pscommand\">Microsoft-Hyper<\/span>-V<span class=\"hljs-parameter\"> -All<\/span>\r\n<\/code><\/pre>\n<p>\u5982\u679c\u65e0\u6cd5\u627e\u5230\u6b64\u547d\u4ee4\uff0c\u8bf7\u786e\u4fdd\u4f60\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c PowerShell\u3002<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8bf7\u91cd\u542f\u3002<\/p>\n<div class=\"heading-wrapper\" data-heading-level=\"h2\">\n<h2 id=\"enable-hyper-v-with-cmd-and-dism\" class=\"heading-anchor\">\u4f7f\u7528 CMD \u548c DISM \u542f\u7528 Hyper-V<\/h2>\n<\/div>\n<p>\u90e8\u7f72\u6620\u50cf\u670d\u52a1\u548c\u7ba1\u7406\u5de5\u5177 (DISM) \u53ef\u5e2e\u52a9\u914d\u7f6e Windows \u548c Windows \u6620\u50cf\u3002 \u5728\u4f17\u591a\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0cDISM \u53ef\u4ee5\u5728\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884c\u65f6\u542f\u7528 Windows \u529f\u80fd\u3002<\/p>\n<p>\u4f7f\u7528 DISM \u542f\u7528 Hyper-V \u89d2\u8272\uff1a<\/p>\n<ol>\n<li>\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u6253\u5f00 PowerShell \u6216 CMD \u4f1a\u8bdd\u3002<\/li>\n<li>\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ol>\n<div id=\"code-try-1\" class=\"codeHeader\" data-bi-name=\"code-header\"><span class=\"language\">PowerShell<\/span><button class=\"action position-relative display-none-print\" type=\"button\" data-bi-name=\"copy\"><\/button><button class=\"action position-relative display-none-print\" type=\"button\" data-bi-name=\"copy\">\u590d\u5236<\/button><\/p>\n<div class=\"successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent\" aria-hidden=\"true\"><\/div>\n<\/div>\n<pre class=\"has-inner-focus\"><code class=\"lang-powershell\" data-author-content=\"DISM \/Online \/Enable-Feature \/All \/FeatureName:Microsoft-Hyper-V\r\n\">DISM \/Online \/<span class=\"hljs-pscommand\">Enable-Feature<\/span> \/All \/FeatureName:<span class=\"hljs-pscommand\">Microsoft-Hyper<\/span>-V\r\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/replace\/8955841bba07fbb48519a57b30ee0db1.png\" alt=\"Console window showing Hyper-V being enabled.\" data-linktype=\"relative-path\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 PowerShell \u542f\u7528 Hyper-V \u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u6253\u5f00 PowerShell \u63a7\u5236\u53f0\u3002 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-608","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/me.spacelite.top\/index.php?rest_route=\/wp\/v2\/posts\/608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/me.spacelite.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/me.spacelite.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/me.spacelite.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/me.spacelite.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=608"}],"version-history":[{"count":1,"href":"https:\/\/me.spacelite.top\/index.php?rest_route=\/wp\/v2\/posts\/608\/revisions"}],"predecessor-version":[{"id":610,"href":"https:\/\/me.spacelite.top\/index.php?rest_route=\/wp\/v2\/posts\/608\/revisions\/610"}],"wp:attachment":[{"href":"https:\/\/me.spacelite.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/me.spacelite.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/me.spacelite.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}