Skip to content

Instantly share code, notes, and snippets.

@muink
Last active October 19, 2025 06:59
Show Gist options
  • Select an option

  • Save muink/801214a40315f5fb358662a875b14937 to your computer and use it in GitHub Desktop.

Select an option

Save muink/801214a40315f5fb358662a875b14937 to your computer and use it in GitHub Desktop.
未安装 Hyper-V 卻一直自动安装 Hyper-V Virtual Ethernet Adapters

未安装 Hyper-V 卻一直自动安装 Hyper-V Virtual Ethernet Adapters

方法

  1. 关闭 Windows 沙盒功能
  2. 以管理员执行以下脚本, 启用显示隐藏设备. 可能需要重启.

Show_Hidden_Devices.bat

@echo off
rem reg load HKLM\ins_sys %h%\Windows\system32\config\system
set "LM_SYS=HKLM\ins_sys"

:: Show_Hidden_Devices
setlocal enabledelayedexpansion

for /f "tokens=2* delims= " %%i in ('reg query %LM_SYS%\select /v current /t reg_dword^|findstr /i current') do (
	set /a "num=%%j"
	reg add "%LM_SYS%\ControlSet00!num!\Control\Session Manager\Environment" /v devmgr_show_nonpresent_devices /t REG_SZ /d 1 /f
)
endlocal
  1. 执行 devmgmt.msc, 点击 View(V) > 勾选 Show hidden devices(W)
  2. 展开 Network adapters, 右键解除安装所有的 Hyper-V Virtual Ethernet Adapters
  3. 执行 bcdedit /set {current} hypervisorlaunchtype off, 重启

参考

https://www.reddit.com/r/techsupport/comments/realsc/windows_10_sandbox_no_hypervisor_was_found_error/?tl=zh-hant
http://blog.infinity.idv.tw/?p=1902

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment