Windows Server 2008 - 下次启动时防止错误恢复屏幕

And*_*ark 5 windows-server-2008 windows-server-2008-r2

我希望能够恢复到从正在运行的 Windows Server 2008 VM 中获取的快照,并在不看到 Windows 错误恢复屏幕的情况下启动它(Windows 没有成功关闭,在安全模式和正常启动 Windows 之间进行选择)。

在 Windows Server 2003 中,可以通过删除值来阻止 Windows 错误恢复屏幕 LastAliveStampHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Reliability

尽管此密钥在 Windows Server 2008 中仍然存在,但删除它并没有相同的效果。

论坛帖子的接受答案表明,启动时出现以下项目表明之前的关机异常:

  • LastAliveStamp上面注册表值
  • 文件lastalive0.datlastalive1.datC:\Windows\ServiceProfiles\LocalService\AppData\Local

到目前为止,我的方法是在拍摄快照之前删除上述所有内容,以便在下次启动时看起来 Windows 已正确关闭。

我尝试在拍摄快照之前删除文件和注册表项,但是当我恢复到快照并打开 VM 时,我仍然看到错误恢复屏幕。

我一直在尝试使用 Windows Server 2008 和 Windows Server 2008 R2,如果它们都需要不同的解决方案,我有兴趣了解它们。

有没有人对我如何实现这一点或其他我可以尝试的事情有任何建议?

iai*_*lbc 10

bcdedit适用于 win 7 Ultimate(必须在关闭 UAC 的情况下运行或在具有管理权限的 cmd 提示符下运行):

bcdedit /set {current} bootstatuspolicy ignoreallfailures
Run Code Online (Sandbox Code Playgroud)

要恢复原始设置:

bcdedit /set {default} bootstatuspolicy displayallfailures
Run Code Online (Sandbox Code Playgroud)

描述:

引导配置数据 (BCD) 文件提供用于描述引导应用程序和引导应用程序设置的存储。存储中的对象和元素有效地替换了 Boot.ini。

BCDEdit 是用于管理 BCD 存储的命令行工具。它可用于多种用途,包括创建新存储、修改现有存储、添加启动菜单选项等。

来源和进一步阅读:

编辑:在此处确认此工具与 Server 2008 兼容

  • [我提到了同样的事情](http://superuser.com/questions/145600/how-does-one-skip-windows-did-not-shut-down-successfully-in-win7-64/255055#255055)上个月在 SuperUser 上结束。 (2认同)