Cosa succede se elimini l'intero registro di Windows?

Sommario:

Cosa succede se elimini l'intero registro di Windows?
Cosa succede se elimini l'intero registro di Windows?

Video: Cosa succede se elimini l'intero registro di Windows?

Video: Cosa succede se elimini l'intero registro di Windows?
Video: How to Add Email Account to Outlook 365 on MacOS - YouTube 2024, Maggio
Anonim
Il registro di Windows è un posto che dovrebbe essere lasciato abbastanza bene da solo, ma solo per amor di discussione, cosa succederebbe se si cancellasse l'intera cosa? Il post di Q & A di SuperUser di oggi discute le possibilità per soddisfare la curiosità di un lettore.
Il registro di Windows è un posto che dovrebbe essere lasciato abbastanza bene da solo, ma solo per amor di discussione, cosa succederebbe se si cancellasse l'intera cosa? Il post di Q & A di SuperUser di oggi discute le possibilità per soddisfare la curiosità di un lettore.

La sessione di domande e risposte di oggi ci viene fornita per gentile concessione di SuperUser, una suddivisione di Stack Exchange, un raggruppamento di domande e risposte basato sulla comunità.

Schermata per gentile concessione di Wikipedia.

La domanda

Lettore SuperUser SkYWAGz vuole sapere cosa succederebbe se fosse stato cancellato l'intero registro di 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

Cosa succede se viene eliminato l'intero registro di Windows?

La risposta

I contributori di SuperUser Daniel B e StW hanno la risposta per noi. Primo, Daniel 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 HKLMSYSTEM. After resetting the VM (because I am lazy), I get the following screen (the operating system is Windows XP):

(Translation: “Windows could not start because the following file is missing or corrupt: WINXPsystem32configSYSTEM”)
(Translation: “Windows could not start because the following file is missing or corrupt: WINXPsystem32configSYSTEM”)

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

Seguito dalla risposta di 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%System32configRegBack.

You can manually copy the backup files into %WINDIR%System32config to restore the registry data.

Hai qualcosa da aggiungere alla spiegazione? Audio disattivato nei commenti. Vuoi leggere più risposte dagli altri utenti di Stack Exchange esperti di tecnologia? Controlla la discussione completa qui.

Consigliato: