Hyper-V 是微软的硬件虚拟化(virtualization)产品。它允许您创建和运行计算机的软件版本,称为 虚拟机(virtual machine)。每个虚拟机就像一台完整的计算机,运行操作系统和程序。在这篇文章中,我们将向您展示在 Windows 11/10 上禁用 Hyper-V的三种方法。(disable Hyper-V)
Hyper-V在其自己的隔离空间中运行每个虚拟机,这意味着您可以同时在同一硬件上运行多个虚拟机。您可能希望这样做以避免影响其他工作负载的崩溃等问题,或者让不同的人、组或服务访问不同的系统。
Hyper-V 可以帮助您:
- 建立或扩展私有云环境。(Establish or expand a private cloud environment.)通过迁移或扩展共享资源的使用并根据需求变化调整利用率,提供更灵活的按需 IT 服务。
- 更有效地使用您的硬件。(Use your hardware more effectively.) 将服务器和工作负载整合(Consolidate)到更少、更强大的物理计算机上,以使用更少的电力和物理空间。
- 提高业务连续性。(Improve business continuity.) 最大限度地减少工作负载的计划内和计划外停机时间的影响。
- 建立或扩展虚拟桌面基础架构 (VDI)。(Establish or expand a virtual desktop infrastructure (VDI).) 将集中式桌面策略与VDI结合使用可以帮助您提高业务敏捷性和数据安全性,并简化法规遵从性并管理桌面操作系统和应用程序。在同一台服务器上部署 Hyper-V(Deploy Hyper-V)和远程桌面虚拟化主机(Remote Desktop Virtualization Host)(RD 虚拟化主机(RD Virtualization Host)),使您的用户可以使用个人虚拟桌面或虚拟桌面池。
- 让开发和测试更有效率。(Make development and test more efficient.) 如果您只使用物理系统,则无需购买或维护您需要的所有硬件,即可重现不同的计算环境。(Reproduce)
在 Windows 11/10 上禁用 Hyper-V
您可以通过 3 种快速简便的方法在Windows 11/10中禁用Hyper-V 。我们将在本节下面概述的方法下探索这个主题:
- 通过控制面板
- 通过 PowerShell
- 通过注册表编辑器
让我们看一下与每种方法相关的分步过程的描述。
1]通过控制面板(Control Panel)禁用Hyper-V
要通过控制面板(Control Panel)禁用Hyper-V,请执行以下操作:
- 按 Windows key + R 调用“运行”对话框。
- 在“运行”对话框中,键入
appwiz.cpl
并按 Enter 以打开“ 程序和功能 (Programs and Features )”小程序。 - 在窗口的左侧,单击 打开或关闭 Windows 功能 (Turn Windows features on or off )链接。
- 等待小程序填充。
- 接下来,展开Hyper-V,展开 Hyper-V Platform,
- 清除 Hyper-V Hypervisor 复选框,或者您可以取消选中父Hyper-V文件夹。
您现在可以退出控制面板。
在这里向下滚动(Scroll)一点,您将看到Windows Hypervisor Platform。供您参考,这允许虚拟化软件在Windows Hypervisor上运行,并且是运行Docker映像所必需的,并允许(Docker)Oracle Virtual-Box、QUEMU和VMWare Workstation等第3 方软件使用Hyper-V运行。默认情况下不选择它。
2]通过PowerShell禁用Hyper-V
要通过PowerShell禁用Hyper-V,请执行以下操作:
- 按Windows key + X打开高级用户菜单(open Power User Menu)。
- 点击键盘上的A以在管理员/提升模式下启动 PowerShell 。
- 在PowerShell控制台中,输入或复制并粘贴以下命令,然后按 Enter(Enter):
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor
提示(Tip):如果您hardware virtualization support enabled in BIOS/UEFI,您可以运行相同的命令来快速启用 Hyper-V;只需 在命令中替换Disable
为。Enable
- 该过程可能需要一段时间。命令执行后,您可以退出PowerShell。
3]通过注册表编辑器(Registry Editor)禁用Hyper-V
由于这是注册表操作,建议您 备份注册表(back up the registry) 或 创建系统还原点 作为必要的预防措施。
要在Windows 10中通过注册表编辑器(Registry Editor)禁用Hyper-V,请执行以下操作:
- 按 Windows key + R 调用“运行”对话框。
- 在“运行”对话框中,键入
notepad
并按 Enter 键以打开记事本。 - 将下面的代码复制并粘贴到文本编辑器中。
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard]
"RequireMicrosoftSignedBootChain"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity]
"WasEnabledBy"=dword:00000000
"Enabled"=dword:00000000
- 现在,单击菜单中的 文件(File) 选项,然后选择 另存为(Save As) 按钮。
- 选择要保存文件的位置(最好是桌面)。
- 输入带有 .reg 扩展名的名称(例如 Disable_HyperV.reg)。
- 从 保存类型(Save as type) 下拉列表中选择 所有文件。(All Files)
- 双击(Double-click)保存的.reg文件将其合并。
- 如果出现提示,请单击 Run > Yes ( UAC ) > Yes > OK 以批准合并。
- 您现在可以根据需要删除.reg文件。
这就是在Windows 11/10Hyper-V的三种方法!
How to disable Microsoft Hyper-V on Windows 11/10
Hyper-V is Microsoft’s hardwarе virtualization product. It lets you create and run a software version of a computer, called a virtual machine. Each virtual machine acts like a complete computer, running an operating system and programs. In this post, we will show you the three ways to disable Hyper-V on Windows 11/10.
Hyper-V runs each virtual machine in its own isolated space, which means you can run more than one virtual machine on the same hardware at the same time. You might want to do this to avoid problems such as a crash affecting the other workloads or to give different people, groups or services access to different systems.
Hyper-V can help you:
- Establish or expand a private cloud environment. Provide more flexible, on-demand IT services by moving to or expanding your use of shared resources and adjusting utilization as demand changes.
- Use your hardware more effectively. Consolidate servers and workloads onto fewer, more powerful physical computers to use less power and physical space.
- Improve business continuity. Minimize the impact of both scheduled and unscheduled downtime of your workloads.
- Establish or expand a virtual desktop infrastructure (VDI). Use a centralized desktop strategy with VDI can help you increase business agility and data security, as well as simplify regulatory compliance and manage desktop operating systems and applications. Deploy Hyper-V and Remote Desktop Virtualization Host (RD Virtualization Host) on the same server to make personal virtual desktops or virtual desktop pools available to your users.
- Make development and test more efficient. Reproduce different computing environments without having to buy or maintain all the hardware you’d need if you only used physical systems.
Disable Hyper-V on Windows 11/10
You can disable Hyper-V in Windows 11/10 in 3 quick and easy ways. We’ll explore this topic under the methods outlined below in this section:
- Via Control Panel
- Via PowerShell
- Via Registry Editor
Let’s take a look at the description of the step-by-step process in relation to each of the methods.
1] Disable Hyper-V via Control Panel
To disable Hyper-V via Control Panel, do the following:
- Press Windows key + R to invoke the Run dialog.
- In the Run dialog box, type
appwiz.cpl
and hit Enter to open the Programs and Features applet. - In the window, on the left side, click the Turn Windows features on or off link.
- Wait for the applet to populate.
- Next, expand Hyper-V, expand Hyper-V Platform,
- Clear the Hyper-V Hypervisor check box or you can just uncheck the parent Hyper-V folder.
You can now exit Control Panel.
Scroll down a bit here and you will see Windows Hypervisor Platform. For your information, this allows virtualization software to run on Windows Hypervisor and is required for running Docker images and lets 3rd-party software like Oracle Virtual-Box, QUEMU, and VMWare Workstation run using Hyper-V. It is not selected by default.
2] Disable Hyper-V via PowerShell
To disable Hyper-V via PowerShell, do the following:
- Press Windows key + X to open Power User Menu.
- Tap A on the keyboard to launch PowerShell in admin/elevated mode.
- In the PowerShell console, type in or copy and paste the command below and hit Enter:
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor
Tip: Provided you have hardware virtualization support enabled in BIOS/UEFI, you can run the same command to quickly enable Hyper-V; just replace Disable
with Enable
in the command.
- The process might take a while. Once the command executes, you can exit PowerShell.
3] Disable Hyper-V via Registry Editor
Since this is a registry operation, it is recommended that you back up the registry or create a system restore point as necessary precautionary measures.
To disable Hyper-V via Registry Editor in Windows 10, do the following:
- Press Windows key + R to invoke the Run dialog.
- In the Run dialog box, type
notepad
and hit Enter to open Notepad. - Copy and paste the code below into the text editor.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard]
"RequireMicrosoftSignedBootChain"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity]
"WasEnabledBy"=dword:00000000
"Enabled"=dword:00000000
- Now, click the File option from the menu and select Save As button.
- Choose a location (preferably desktop) where you want to save the file.
- Enter a name with .reg extension (eg; Disable_HyperV.reg).
- Choose All Files from the Save as type drop-down list.
- Double-click the saved .reg file to merge it.
- If prompted, click on Run > Yes (UAC) > Yes > OK to approve the merge.
- You can now delete the .reg file if you like.
That’s it on the three ways to disable Hyper-V on Windows 11/10!