尧图精选

Win11 24H2 下 eNSP 启动异常与 VBS 排查记录

🕒 发布时间:2026/10/1 21:35:20 📁 来源:尧图网络
# Win11 24H2 下 eNSP 启动异常与 VBS 排查记录**通过关闭内存完整性、Virtual Machine Platform、HypervisorPlatform、VBS 和 Windows Hypervisor并在必要时将 DeviceGuard\Scenarios\WindowsHello\Enabled 设为 0最终使 VirtualizationBasedSecurityStatus0、HypervisorPresentFalse从而解决 eNSP 与旧版 VirtualBox 的虚拟化冲突。**本文根据本人实际排查过程整理文字由 AI 辅助总结仅供遇到类似情况的用户参考为了运行华为 eNSP我在 Windows 11 24H2 上排查了 AR/WLAN 等虚拟设备启动异常的问题。排查过程中发现Windows 的 **VBSVirtualization-Based Security和 Hypervisor 仍处于运行状态**。## 1. 确认 WinPcap 状态重新安装 WinPcap 4.1.3 时出现textError opening file for writing:C:\Windows\System32\drivers\npf.sys随后使用管理员 CMD 检查cmdsc query npf结果textSTATE : 4 RUNNING说明 WinPcap 的 npf 驱动已经正常运行因此没有继续重复安装。之前安装过但是忘了## 2. 检查 VBS 和 Hypervisor在 msinfo32 中发现text基于虚拟化的安全性正在运行PowerShell 进一步检查powershellGet-CimInstance -ClassName Win32_DeviceGuard -Namespace root\Microsoft\Windows\DeviceGuard |Select-Object VirtualizationBasedSecurityStatus结果textVirtualizationBasedSecurityStatus 2同时powershellGet-CimInstance Win32_ComputerSystem |Select-Object HypervisorPresent结果textHypervisorPresent True说明 VBS 和 Windows Hypervisor 当时仍处于运行状态。## 3. 关闭常见虚拟化相关组件依次关闭或确认关闭text内存完整性Virtual Machine PlatformWindows 虚拟机监控程序平台WSL并执行cmdbcdedit /set hypervisorlaunchtype offbcdedit /set vsmlaunchtype off同时将textHKLM\SYSTEM\CurrentControlSet\Control\DeviceGuardEnableVirtualizationBasedSecurity设置为text0但重启后仍然得到textVirtualizationBasedSecurityStatus 2HypervisorPresent True说明在这台电脑上仅关闭上述项目还不足以让 VBS 完全停止。## 4. 排查 Windows Hello 相关配置继续检查发现textHKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\WindowsHello中的textEnabled 1修改前先进行了注册表备份powershellreg export HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\WindowsHello $env:USERPROFILE\Desktop\WindowsHello-backup.reg /y随后将其设置为textEnabled 0重启后再次检查textVirtualizationBasedSecurityStatus 0HypervisorPresent False此时 VBS 和 Hypervisor 均已停止运行。## 5. 登录异常修改 Windows Hello 相关配置后重启时出现了账户重新验证的情况。我最终通过 **Microsoft Authenticator** 完成身份验证并恢复正常登录之后 PIN 也可以正常使用。因此修改 Windows Hello / Device Guard 相关注册表项前应- 备份相关注册表- 确保 Microsoft 账户密码可用- 最好准备 Authenticator 或其他身份验证方式。## 最终结果最终系统状态为textVirtualizationBasedSecurityStatus 0HypervisorPresent False同时确认textVirtualMachinePlatform DisabledHypervisorPlatform DisabledEnableVirtualizationBasedSecurity 0hypervisorlaunchtype Offvsmlaunchtype OffWinPcap 驱动保持textSTATE : 4 RUNNING至此Windows 的 VBS/Hypervisor 不再运行可以继续测试 eNSP 和其依赖的虚拟化环境。## 注意以上是**我这台 Windows 11 24H2 电脑的实际排查过程**并不意味着所有 24H2 设备都必须修改textDeviceGuard\Scenarios\WindowsHello\Enabled如果关闭内存完整性、相关 Windows 可选功能以及 Hypervisor 后VBS 已经停止则**没有必要继续修改 Windows Hello 相关注册表项**。该项修改可能影响 Windows Hello/PIN 登录因此应作为进一步排查手段而不是通用的第一步解决方案。
上一篇/下一篇内容由系统自动关联 返回资讯列表 →