Alright, so I've known about there being a registry DWORD in Windows that when enabled would allow you to instantly trigger a BSOD through the keystroke combination RightCtrl + ScrollLck + ScrollLck for some time now. Later saw that someone here described it as well.
Having nothing to do, I decided to make an auto-BSOD configuration script because hey, why the fuck not?
I originally decided to use Python and the _winreg module, but then I scrapped the unfinished code when I realized I could just make a Batch file so it would work natively.
The result:
@echo off
color 1F
NET FILE 1>NUL 2>NUL & IF ERRORLEVEL 1 (
echo You need to have administrator privileges to run this script, as your Windows
echo version supports UAC. Right click and Run as administrator.
echo.
pause
exit /d
)
title = BSODReady: When hardware errors and defective by design operating systems fail.
cls
ver
echo Welcome to BSODReady - the totally useless BSOD configuration tool.
echo.
echo This script implements the method described in
echo http://www.howtogeek.com/howto/windows-vista/keyboard-ninja-kill-windows-with-the-blue-screen-of-death-in-3-keystrokes/
echo.
pause
echo Adding registry DWORD CrashOnCtrlScroll with value of 1.
echo.
reg add HKLM\SYSTEM\CurrentControlSet\Services\kbdhid\Parameters /t REG_DWORD /v CrashOnCtrlScroll /d 1
reg add HKLM\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters /t REG_DWORD /v CrashOnCtrlScroll /d 1
echo.
echo Done. You must now reboot your computer for this to take effect.
echo.
echo Later, you can initiate a BSOD by holding down RightCtrl and pressing ScrollLck twice.
echo.
echo You will now be prompted to reboot automatically.
pause
shutdown /g
As Windows versions since Vista have User Access Control, the script detects if it is not being run as admin and informs you.
Then it's pretty much just a matter of editing the registry for you and giving you the option of automatic reboot (/g for shutdown, restart OS and restart registered apps).
My original intent was to have the changes done and then have the keys sent to you all in one go (original title was InstantBSOD). Then I realized that since you need to reboot for changes to take effect, this was even more useless than the script itself. That was the same time I scrapped Python for Batch. Nevertheless, I tried using WshShell.SendKeys in VBScript, however it doesn't support specific Ctrl/Alt/Shift keys (You need Right here). I could have used something like AutoHotkey, but I figured it was overkill. I was testing this on a friend's Vista box and he had no connection, so that discouraged me even more.
So yeah, this is it. If you have any ideas on making it the InstantBSOD it was meant to be, feel free to share. This was kind of an odd experience for me, as I had grown out of Windows. I might go back to that Python script some day, who knows?
EDIT: Changed cmd color from F0 to 1F