如果删除整个windows注册表会发生什么?

Windows注册表是一个应该保持足够独立的地方,但只是为了争论,如果你删除了整个东西会发生什么?今天的超级用户问答帖子讨论了满足读者好奇心的可能性。...

如果删除整个windows注册表会发生什么?

Windows注册表是一个应该保持足够独立的地方,但只是为了争论,如果你删除了整个东西会发生什么?今天的超级用户问答帖子讨论了满足读者好奇心的可能性。

今天的问答环节是由SuperUser提供的,SuperUser是Stack Exchange的一个分支,是一个由社区驱动的问答网站分组。

截图由维基百科提供。

问题

超级用户读者SkYWAGz想知道如果整个Windows注册表被删除会发生什么:

I have been wondering what would happen if I deleted the entire Windows registry (using the following code for instance). Would my PC stop working?

  • cd %TMP%
  • reg query HKCR> RegTest.txt
  • reg query HKCU>> RegTest.txt
  • reg query HKLM>> RegTest.txt
  • reg query HKU>> RegTest.txt
  • reg query HKCC>> RegTest.txt
  • @pause && cls
  • for /f “delims=” %%I in (RegTest.txt) do reg delete “%%I” /va /f

如果删除整个Windows注册表会发生什么情况?

答案

超级用户贡献者danielb和StW为我们提供了答案。首先,丹尼尔B:

You cannot delete the root nodes since they do not physically exist. You can, however, delete their contents via Regedit (as opposed to reg).

Regedit hangs as soon as I try to delete HKLM\SYSTEM. After resetting the VM (because I am lazy), I get the following screen (the operating system is Windows XP):

007Ys3FFgy1gpfcc4wb9kj30hd05k74k

(Translation: “Windows could not start because the following file is missing or corrupt: \WINXP\system32\config\SYSTEM”)

So yes, deleting stuff from the registry will absolutely positively kill Windows. And unless you have a backup, restoring it is impossible.

接下来是StW的回答:

Windows stores a lot of critical information in the registry, which is loaded (at least a part of it) during an early stage while booting. If you remove this information, Windows will be unable to find and load critical system files and thus be unable to boot.

Such critical information is the list of device drivers needed for booting the system. This may include:

  • Disk drivers (Floppies, Hard-Disks, CDs, USB Devices, …)
  • Bus drivers (IDE, SATA AHCI, …)
  • File system drivers (FAT, NTFS, …)

However, by default Windows stores a backup copy of the registry. If you have enabled System Restore, you can find such copies in the (hidden) System Volume Information Folder inside the root folder of the system partition. Additionally, even if you do not have System Restore enabled, Windows saves a backup copy of the registry in %WINDIR%\System32\config\RegBack\.

You can manually copy the backup files into %WINDIR%\System32\config\ to restore the registry data.


有什么要补充的解释吗?在评论中发出声音。想从其他精通技术的Stack Exchange用户那里了解更多答案吗?在这里查看完整的讨论主题。

  • 发表于 2021-04-11 05:11
  • 阅读 ( 118 )
  • 分类:互联网

你可能感兴趣的文章

5个windows pc维护错误可能会损坏您的电脑

... 注册表是一个数据库,Windows在其中保存操作系统和第三方应用程序的各种设置。通常,您不需要自己冒险进入注册表,除非您想执行高级调整或类似操作。 ...

  • 发布于 2021-03-10 19:23
  • 阅读 ( 260 )

如何禁用和删除windows家庭组

... 编辑注册表 ...

  • 发布于 2021-03-14 22:25
  • 阅读 ( 186 )

重置或刷新windows10的一个原因是:杂乱

...如简介中提到的,手动删除应用程序通常会将残余文件和注册表项隐藏在操作系统中。只有最懂电脑的用户才能清除所有垃圾的痕迹。 ...

  • 发布于 2021-03-15 03:17
  • 阅读 ( 259 )

什么是快捷病毒,你如何去除它?

... 打开“开始”菜单,搜索regedit,然后启动注册表编辑器。 在注册表编辑器中,导航到左侧栏中的以下内容:HKEY\ U CURRENT\ U USER/Software/Microsoft/Windows/CurrentVersion/Run 在右侧面板中,查找...

  • 发布于 2021-03-17 17:02
  • 阅读 ( 234 )

什么是windows注册表?如何编辑它?

Windows注册表乍一看是个可怕的地方。在这里,超级用户可以更改其他地方未公开的Windows设置。当您在Windows中搜索如何更改某些内容时,常常会发现一些文章告诉您编辑注册表。 ...

  • 发布于 2021-03-20 08:13
  • 阅读 ( 165 )

microsoft将在即将发布的更新中删除方便的windows功能

...种方法,可以再次将震动最小化。修复包括创建一个新的注册表项,但这不是一个困难的过程。 ...

  • 发布于 2021-03-29 01:45
  • 阅读 ( 184 )

什么是Windows10MeetNow以及如何删除它

... 三。使用windows注册表删除meet now ...

  • 发布于 2021-03-29 02:41
  • 阅读 ( 327 )

如何删除windows上的chrome扩展“由企业策略安装”

...展通常可以删除,但不幸的是,并不总是通过修改Windows注册表来删除。下面是方法。 首先,启动Chrome,键入chrome://扩展到打开Omnibox,然后按Enter键。 在页面顶部,将“开发人员模式”切换到“打开”位置。这使您可以查看有关...

  • 发布于 2021-04-03 16:45
  • 阅读 ( 210 )

如何在Windows10中启用剩余电池时间

...剩余时间 要恢复Windows10中剩余的电池时间,只需在Windows注册表中进行一些编辑。 标准警告:注册表编辑器是一个强大的工具,误用它会使您的系统不稳定,甚至无法运行。这是一个非常简单的黑客程序,只要你遵守指令,你就...

  • 发布于 2021-04-03 18:39
  • 阅读 ( 161 )

windows注册表解密:你能用它做什么

Windows注册表是一个数据库,Windows和许多程序在其中存储其配置设置。您可以自己编辑注册表以启用隐藏功能并调整特定选项。这些调整通常被称为“注册表黑客” 什么是windows注册表,它是如何工作的(the windows registry, and how d...

  • 发布于 2021-04-04 23:18
  • 阅读 ( 185 )
c4057979141
c4057979141

0 篇文章

相关推荐