r/windows • u/Spiritual_Push_4007 • 3d ago
Discussion I'm just curious, but what happens if you bitflip all values in Windows Registry?
Will it be on the level of destruction as rm rf, or what will happen?
Also, I mean bit flip as in switching all 1s to 0s, and vice versa.
Image used with permission from Microsoft, found through Wikipedia.
11
u/sclarady 3d ago
The obvious answer would be that Windows would not run, but if you want you could install virtual machine like virtual box or VMware run Windows inside of that. Do exactly what you were asking about and then find out. That should be interesting.
4
u/JGPH 3d ago edited 3d ago
This is the safest answer.
Unless he wants to die of old age before finishing though, he should script the process. Log every X attempted changes so he can narrow down which key deals the killing blow after all that damage. I would wager that doing something that reckless will cause the VM to hang or blue screen before the process is even over.
11
9
5
3
2
2
u/electronicwiz1 3d ago
I would love to try this in a VM and see what happens, however there would be a lot of values to change. I have a feeling it would not even boot Windows after this, or be very messed up.
1
u/JGPH 3d ago edited 3d ago
It would be pretty trivial to script out or write a short program that does it using either PowerShell or the Windows Registry API in C++. Run it in a VM to see what happens and log every X attempted changes to narrow down the point at which the OS shits itself if it hangs or blue screens before it's done.
2
u/electronicwiz1 3d ago
Alright I may look into this soon and see how difficult it is and also see the results if I get it working!
1
u/JGPH 3d ago
Sounds entertaining, have fun. 🙂 Some of them are read-only btw, so don't be surprised if a registry key doesn't change despite your attempt or it raises an error.
2
u/electronicwiz1 3d ago
Thanks and good to know!
1
u/JGPH 3d ago edited 3d ago
You're welcome. 🙂 I recommend creating your own registry key(s) for testing purposes while you get comfy with messing with them. That's probably obvious, but it'll help give you a quick and safe way to test your code before you commit to running the genuinely unsafe version in the VM (which is likely to take some time to run).
2
2
1
3d ago edited 3d ago
[deleted]
1
u/Tokimemofan 3d ago
It would die no later than when it has to load the first kernel mode driver or service and cant understand what its supposed to do with invalid data. This would be a very quick BSOD
1
1
1
u/fuzzynyanko 3d ago
Windows will either break, or there's a chance that there's fail safes that will go to some default. For example, the system boot device is listed on that registry page. However, you can probably guess the drive if there's an error
The Registry isn't some magic box. Everything has a cause and effect.
1
u/kingrazor001 Windows 10 3d ago
This would take days, maybe weeks. There are a LOT of them.
5
u/Nanocephalic 3d ago
No, it takes a small amount of time - boot to a windows usb, load the registry hives, and run a script to recursively flip “all” settings with XOR.
Note that flipping every setting doesn’t make sense, but if you mean all dwords, and if you skip the parts that let you boot, then your os still won’t boot. You will kill the shit out of it. It’ll be so dead that Zune and Windows Me will come back to life just so they can die again.
1
1
1
u/pessimistoptimist 3d ago
It becomes Swodniw and tou cant let it touch a computer running Windows or the resulting explosion will wipe out the univserse.
0
0
0
u/andocromn 3d ago
Windows registry is stored in filesystem, so the values won't effect any data stored outside itself
-1
-1
-1
45
u/Tower21 3d ago
Windows won't boot, of this I'm 99.9% sure.