如果刪除整個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
  • 閱讀 ( 25 )
  • 分類:網際網路

你可能感興趣的文章

windows登錄檔清理程式真的有什麼不同嗎?

...糟”,這將“導致錯誤訊息並減慢計算機的執行速度”。如果你繼續安裝登錄檔清理程式,他們會掃描你的登錄檔以查詢“問題”,並可能報告數百個“關鍵問題”以減慢計算機的執行速度。 ...

  • 發佈於 2021-03-11 11:02
  • 閲讀 ( 45 )

重置或重新整理windows10的一個原因是:雜亂

...影響你的電腦的啟動時間和佔用寶貴的儲存空間,特別是如果你的電腦是舊的,缺乏記憶體。 ...

  • 發佈於 2021-03-15 03:17
  • 閲讀 ( 56 )

什麼是windows登錄檔?如何編輯它?

... 如果你需要編輯登錄檔,不用擔心。做一個登錄檔調整是很容易的,只要你知道你正在修改什麼設定。但是,編輯Windows登錄檔時必須小心,因為這樣可能會產生意外問題...

  • 發佈於 2021-03-20 08:13
  • 閲讀 ( 43 )

cleanmypc可滿足您所有的pc維護需求

...和類似的剩餘資料填滿。雖然你真的不需要清理這個,但如果你想做一些嚴肅的電腦維護,CleanMyPC包含了一個登錄檔清理程式。 ...

  • 發佈於 2021-03-24 22:48
  • 閲讀 ( 42 )

是時候再次信任ccleaner了嗎?

... 如果你不熟悉,CCleaner的問題始於2017年,當時開發者Piriform被Avast收購。CCleaner網站上的32位應用程式版本遭到駭客攻擊,在下載過程中添加了一個特洛伊木馬程式,幸好該...

  • 發佈於 2021-03-30 17:14
  • 閲讀 ( 45 )

如何刪除windows上的chrome擴充套件“由企業策略安裝”

...許您解除安裝它們,因為它們是以提升的許可權安裝的。如果您是企業或企業的一部分,則管理員會安裝這些。如果你不是這樣一個組織的一部分,下面是如何刪除它們。 “按企業策略安裝”是什麼意思? 當Google Chrome擴充套...

  • 發佈於 2021-04-03 16:45
  • 閲讀 ( 44 )

如何在Windows10中啟用剩餘電池時間

...式,只要你遵守指令,你就不會有任何問題。也就是說,如果您以前從未使用過它,請考慮在開始之前閱讀有關如何使用登錄檔編輯器的內容。一定要備份登錄檔(和你的電腦!)在進行更改之前。 點選開始並鍵入“regedit”開...

  • 發佈於 2021-04-03 18:39
  • 閲讀 ( 40 )

當你關閉或登出windows時,到底會發生什麼?

...出之前使用其他使用者帳戶登入時,會發生這種情況。 如果Windows注意到其他使用者尚未正確登出,您將看到“其他人仍在使用此電腦”訊息。如果您強制重新啟動,其他使用者可能會丟失開啟的應用程式中任何未儲存的資料。...

  • 發佈於 2021-04-04 05:00
  • 閲讀 ( 47 )

如何從Windows10設定中清除最近使用的桌面背景影象

...開始。 透過手動編輯登錄檔清除最近使用的背景影象 如果您不小心添加了一個影象作為背景,並希望將其刪除,則不能簡單地右鍵單擊該影象並將其刪除。當然,您可以再新增五個不同的影象,但是使用這個登錄檔編輯要容...

  • 發佈於 2021-04-04 07:54
  • 閲讀 ( 52 )

windows登錄檔解密:你能用它做什麼

...過調整登錄檔在Windows家庭版中更改這些設定。 安全嗎? 如果你知道自己在做什麼,編輯登錄檔並不危險。只需按照說明操作,只需更改指示您更改的設定。 但是,如果你進入登錄檔,開始隨意刪除或更改東西,你可能會弄亂...

  • 發佈於 2021-04-04 23:18
  • 閲讀 ( 50 )
c4057979141
c4057979141

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦