Hyper-V 預先安裝在 Windows 11 電腦上。雖然此虛擬化工具在家庭版作業系統上無法開箱即用,但您可以使用批次腳本安裝它。
不幸的是,Hyper-V 可能會與 PC 上的第三方應用程式發生衝突,包括其他虛擬化工具,例如 VMWare Workstation、VirtualBox 和模擬器。因此,在嘗試啟動應用程式、PC 遊戲或硬體調整公用程式時,您可能會遇到 Hyper-V 偵測到的錯誤。
幸運的是,您可以藉助經典的 Windows 功能對話方塊、命令提示字元和 PowerShell 在 Windows 11 中停用 Hyper-V。
根據設計,只有一種虛擬化工具可以使用處理器上提供的整合虛擬化擴展,例如 Intel VT-x 和 AMD-V 。如果您需要使用第三方虛擬化軟體,包括VMware WorkStation和Virtual Box,則必須停用Hyper-V Hypervisor。
您可能還需要停用其他與虛擬機器管理程式相關的功能,包括 Device Guard、Credential Guard 以及 Windows 安全性中核心隔離的記憶體完整性功能部分。
您可以存取系統資訊應用程式以確定 Hyper-V 虛擬化是否正在執行。如果您需要在停用 Hyper-V 管理程式之後或之前驗證其狀態,這非常有用。
若要檢查電腦上的 Hyper-V 虛擬機器管理程式狀態:
<code class="hljs ">A hypervisor has been detected. Features required for Hyper-V will not be displayed.</code>
Windows 功能對話方塊可讓您新增Windows 11 中預設停用的其他功能。停用一些進階功能,包括 Hyper-V。
請注意,要修復 Hyper-V 偵測到的錯誤,除了 Hyper-V 之外,還必須停用虛擬機器平台和 Windows Hypervisor 平台功能。
使用 Windows 功能對話方塊停用 Hyper-V:
<code class="hljs sql">bcdedit /set hypervisorlaunchtype off</code>
<code class="hljs sql">bcdedit /set hypervisorlaunchtype auto</code>
Additionally, you can use the BCDEdit tool to perform other advanced tasks, such as deleting the old boot menu options and adding a safe mode shortcut to the Windows 11 boot menu.
If the Windows Features dialog fails to remove Hyper-V, you can use the Command Prompt to disable the hypervisor. Here's how to do it:
<code class="hljs bash">dism /online /disable-feature /featurename:Microsoft-hyper-v-all</code>
After the restart, you can run your games and other hypervisors without the error. If not, open the Windows Features dialog, disable the Virtual Machine Platform and Windows Hypervisor Platform options, and restart your PC to turn off Hyper-V Hypervisor.
If you prefer PowerShell, use the WindowsOptionalFeature cmdlet to disable Hyper-V in Windows 11. To do this, launch PowerShell with admin privileges and execute the command. Here's how to do it:
<code class="hljs ">Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All</code>
During the restart following the uninstallation of Hyper-V, you may frequently encounter the message, "We couldn't complete the updates, undoing changes." To resolve this issue, ensure the Hyper-V virtual network adapters are deleted from your PC. You can delete the virtual network adapter from Device Manager.
To delete Hyper-V's virtual network adapters:
Do not remove the Microsoft Wi-Fi Direct Virtual Adapter.
If you encounter the Hyper-V detected issue even after you disable Hyper-V, try to disable the Memory integrity feature in Windows Security. The Memory integrity feature is part of Core Isolation. It helps prevent hackers from accessing and infecting high-security processes using malicious code.
By default, Windows disables the Memory integrity feature to avoid conflict with apps and device drivers due to incompatibility issues. This can also cause issues with third-party virtualization tools and programs needing access to your system's virtualization hardware.
To turn off Memory integrity in Windows Security:
Device Guard and Credential Guard don't play well with other virtualization software, including VMware Workstation. You may encounter an error saying Device Guard/Credential Guard is enabled when trying to power on the VMware Workstation.
Since you intend to use third-party virtualization software, you can safely disable Device Guard and Credential Guard using the Registry Editor.
That said, modifying the Windows Registry involves risk. We recommend you create a restore point and take a registry backup before attempting any modifications.
To disable Device Guard and Credential Guard:
<code class="hljs ">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa</code>
<code class="hljs ">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard</code>
Restart your computer to apply the changes and disable Device Guard and Credential Guard. If you ever need to enable these features, modify the value data and change it to 1.
Hyper-V is an excellent utility if you want an out-of-the-box virtualization solution. However, you must disable Hyper-V to use third-party virtualization software, including VirtualBox and WMware Workstation.
Fortunately, you can easily disable the Hyper-V Hypervisor and other Virtualization-based Security solutions to use third-party hypervisors without errors.
以上是如何在 Windows 11 中停用或刪除 Hyper-V的詳細內容。更多資訊請關注PHP中文網其他相關文章!