I have been having issues with my PC blue-screening every day. I went to Google to find out how I can solve the problem. I clicked on a post, which advised to use the Driver Verifier to find what's causing the issue. After I enabled it, I rebooted and was hit with a BSOD a few seconds later. Driver Verifier works by trying to cause BSOD errors. This will make your system incredibly unstable. In most cases, you can launch the Driver Verifier Manager again and disable everything. In my case, that caused a BSOD. I finally came across this Reddit post, explaining a fix using the registry. So I fired up Registry Editor, but my system promptly crashed. I tried this a few times, to no avail.
What do I do now?
You have a few options. You can use a Windows Recovery Media to use the registry editor. You can also use a tool like PCregedit that burns to a USB drive and allows registry editing. I opted to use Linux. You can either use a live USB, or you can dual boot. In my case, I have a Fedora-Windows dual boot.
We will be using a tool called
chntpw to edit the registry. It is designed for resetting lost user passwords, but contains a simple registry editor that we can use.
First, we need to install
chntpw. It is available on most major package repositories.
Next, we need to mount the Windows drive. Use
lsblk to list all the drives. Locate your Windows partition. In my case, it is
/dev/nvme0n1p3 but will be different on your device.
mount /dev/<Windows partition name> /media/windows
You may get an error like this:
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)
If this happens, you can either reboot into Windows then make sure you shutdown correctly (disable fast startup), or the easier way is to run
ntfsfix /dev/<Windows partition name>. Then, un-mount and mount again and it should work
Now, you should be able to run
cd /mnt/windows && ls and see your Windows drive. We can now edit the registry.
Now we want to backup the registry in case we mess something up.
cp /media/windows/Windows/System32/config/SYSTEM /media/windows/Windows/System32/config/SYSTEM.old
Run the command
chntpw -e /media/windows/Windows/System32/config/SYSTEM. This will open the simple registry editor.
cd CurrentControlSet\Control\Session Manager\Memory Management\. If
CurrentControlSet doesn't exist, use
Now, we need to delete 2 values.
dk VerifyDrivers and
Now, type q and press enter. You will be met with the screen:
Hives that have changed:
Write hive files? (y/n) [n] :
If you see anything else, enter n and follow the instructions again.
Otherwise, enter y.
Now you should be able to boot into Windows and the Driver Verifier should be disabled.