ホームページ  >  記事  >  システムチュートリアル  >  Windows 11 で Hyper-V を無効または削除する方法

Windows 11 で Hyper-V を無効または削除する方法

WBOY
WBOYオリジナル
2024-06-14 15:59:121032ブラウズ

Hyper-V は Windows 11 コンピューターにプリインストールされています。この仮想化ツールは OS の Home エディションではそのままでは利用できませんが、バッチ スクリプトを使用してインストールできます。

残念ながら、Hyper-V は、VMWare Workstation、VirtualBox、エミュレーターなどの他の仮想化ツールを含む、PC 上のサードパーティ アプリと競合する可能性があります。その結果、アプリ、PC ゲーム、またはハードウェア チューニング ユーティリティを起動しようとすると、「Hyper-V が検出されました」というエラーが発生する可能性があります。

幸いなことに、Windows 11 では、従来の Windows の機能ダイアログ、コマンド プロンプト、PowerShell を使用して Hyper-V を無効にすることができます。

Hyper-V を無効にする必要がある理由

設計上、プロセッサーで利用可能な統合仮想化拡張機能 (Intel VT-x や AMD-V など) を使用できる仮想化ツールは 1 つだけです。 VMware WorkStation や Virtual Box などのサードパーティの仮想化ソフトウェアを使用する必要がある場合は、Hyper-V ハイパーバイザーを無効にする必要があります。

Windows セキュリティのコア分離の一部である Device Guard、Credential Guard、メモリ整合性機能など、ハイパーバイザーに依存する他の機能も無効にする必要がある場合があります。

Windows 11 で Hyper-V が実行されているかどうかを確認する方法

How to Disable or Remove Hyper-V in Windows 11

システム情報アプリにアクセスして、Hyper-V 仮想化が実行されているかどうかを確認できます。これは、Hyper-V ハイパーバイザーを無効にした後または無効にする前に、その状態を確認する必要がある場合に役立ちます。

コンピューター上の Hyper-V ハイパーバイザーの状態を確認するには:

  1. Win + R を押して [ファイル名を指定して実行] を開きます。
  2. 「msinfo32.exe」と入力し、「OK」をクリックしてアプリを開きます。
  3. 次に、詳細タブの下部に次のエントリが利用可能かどうかを確認します:
    <code class="hljs ">A hypervisor has been detected. Features required for Hyper-V will not be displayed.</code> 
  4. 利用可能な場合は、以下で説明するように、Hyper-V、メモリ整合性、および Credential Guard 機能を無効にする必要があります。他の仮想化ツールではエラーは発生しません。

1. Windows のオプション機能を介して Hyper-V を無効にする方法

[Windows の機能] ダイアログを使用すると、Windows 11 でデフォルトで無効になっている機能を追加できます。これを使用して、Hyper-V などの一部の高度な機能を無効にすることもできます。

Hyper-V 検出エラーを修正するには、Hyper-V に加えて、仮想マシン プラットフォームと Windows ハイパーバイザー プラットフォーム機能を無効にする必要があることに注意してください。

[Windows の機能] ダイアログを使用して Hyper-V を無効にするには:

  1. Win + R キーを押して、[ファイル名を指定して実行] ダイアログを開きます。
  2. 「control」と入力し、「OK」をクリックしてコントロールパネルを開きます。
  3. コントロール パネルで、[プログラム] をクリックします。How to Disable or Remove Hyper-V in Windows 11
  4. 次に、[プログラムと機能] をクリックします。
  5. 左側のペインで、[Windows の機能をオンまたはオフにする] をクリックします。How to Disable or Remove Hyper-V in Windows 11
  1. [Windows の機能] ダイアログで、[Hyper-V] を見つけます。
  2. 機能を無効にするには、Hyper-V オプションのチェックを外します。How to Disable or Remove Hyper-V in Windows 11
  3. 次に、下にスクロールして、仮想マシン プラットフォーム オプションと Windows ハイパーバイザー プラットフォーム オプションを見つけます。How to Disable or Remove Hyper-V in Windows 11
  4. 両方のオプションの選択を解除し、[OK] をクリックします。
  5. Windows は、Hyper-V とその他の機能をシステムからアンインストールします。
  6. 完了したら、PC を再起動して変更を適用します。

2. BCDEDIT を使用して Hyper-V を無効にする方法

How to Disable or Remove Hyper-V in Windows 11

BCDEdit ツールを使用して、ブート構成で Hyper-V を無効にすることができます。これは、Hyper-V を完全にアンインストールするのではなく、非アクティブ化のみを行う場合に便利です。

BCDEdit を使用して Hyper-V を無効にするには:

  1. Press the Win key and type cmd.
  2. Right-click on the Command Prompt and select Run as administrator.
  3. In the Command Prompt window, type the following command and press Enter:
    <code class="hljs sql">bcdedit /set hypervisorlaunchtype off</code> 
  4. When the success message appears, close the Command Prompt and restart your PC to apply the changes.
  5. If you need to activate Hyper-V again, use the following command:
    <code class="hljs sql">bcdedit /set hypervisorlaunchtype auto</code> 
  6. Make sure to restart your PC to apply the changes.

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.

3. How to Uninstall Hyper-V Using the Command Prompt

How to Disable or Remove Hyper-V in Windows 11

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:

  1. Open Command Prompt as administrator.
  2. In the Command Prompt window, type the following command and press Enter:
    <code class="hljs bash">dism /online /disable-feature /featurename:Microsoft-hyper-v-all</code> 
  3. Upon execution, the DISM tool will disable Hyper-V and show the operation completed successfully message to indicate successful execution.
  4. Type exit, press Enter to close the Command Prompt, and restart your PC.

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.

4. How to Disable Hyper-V Using PowerShell

How to Disable or Remove Hyper-V in Windows 11

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:

  1. Press the Win key and type powershell.
  2. Right-click on PowerShell and select Run as administrator.
  3. Click Yes when prompted by User Account Control.
  4. In the PowerShell window, copy and paste the command below and press Enter:
    <code class="hljs ">Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All</code> 
  5. Wait for the process to complete. Once done, close PowerShell and restart your PC to apply the changes.

How to Uninstall the Hyper-V Virtual Network Adapter

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:

  1. Press Win + R to open Run.
  2. Type dvmgmt.msc and click OK to open Device Manager.
  3. In Device Manager, expand the Network Adapters section to locate the Hyper-V Virtual network adapters.
  4. If no virtual adapters associated with Hyper-V are listed, click View and select Show hidden devices.How to Disable or Remove Hyper-V in Windows 11
  5. Right-click on the Hyper-V Virtual Ethernet Adapter and select Uninstall device.

    Do not remove the Microsoft Wi-Fi Direct Virtual Adapter.

  6. Click Uninstall to confirm the action.How to Disable or Remove Hyper-V in Windows 11
  7. Repeat the steps to delete all the virtual network adapters associated with Hyper-V.
  8. Once done, close Device Manager and restart your PC. Next, uninstall Hyper-V and check for any improvements.

How to Turn Off Virtualization-Based Security (Memory Integrity)

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:

  1. Press Win + I to open the Settings app.
  2. In the left pane, click on the Privacy & security tab.How to Disable or Remove Hyper-V in Windows 11
  3. Next, click on Windows Security.
  4. Under the Protection areas section, click on Device security.How to Disable or Remove Hyper-V in Windows 11
  5. Next, click on Core isolation details under the Core isolation section.How to Disable or Remove Hyper-V in Windows 11
  6. Toggle the switch under Memory integrity to turn it Off.How to Disable or Remove Hyper-V in Windows 11
  7. Restart your PC to apply the changes.

How to Disable Device Guard and Credential Guard

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:

  1. Press Win + R to open Run.
  2. Type regedit and click OK to open Registry Editor.
  3. In Registry Editor, navigate to the following location:
    <code class="hljs ">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa</code> 
  4. In the right pane, locate the LsaCfgFlagsDWORD value. You'll need to create a new key if no such value exists.How to Disable or Remove Hyper-V in Windows 11
  5. To create a new key, right-click the Lsa subkey in the left pane and select New < DWORD (32-bit)value. Rename the value as LsaCfgFlags.
  1. Next, double-click on LsaCfgFlags and type 0 in the Value data field.How to Disable or Remove Hyper-V in Windows 11
  2. Click OK to save the changes.
  3. Next, in Registry Editor, navigate to the following location:
    <code class="hljs ">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard</code> 
  4. In the right pane, check if the EnableVirtualizationBasedSecurity value exists. If not, right-click the DeviceGuard subkey and select New > DWORD (32-bit) Value.How to Disable or Remove Hyper-V in Windows 11
  5. Next, rename the key as EnableVirtualizationBasedSecurity and set its value to 0.How to Disable or Remove Hyper-V in Windows 11
  6. Click OK to save the changes.

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.

Disable Hyper-V in Windows 11 to Run Third-Party Virtualization Tools and Apps

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 中国語 Web サイトの他の関連記事を参照してください。

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。