The Blue Screen of Death is one of the most unpleasant events a person can encounter. It ranks right up there with doing your income taxes or an unexpected visit from your mother-in-law. However, there are times when you actually want to have a BSOD event happen. Maybe you’re doing some extreme failover testing, or maybe you want to show how your software can recover from a disastrous situation.
If that’s the case, then you need a consistent way to force a BSOD. The steps below show you how to do it:
- Go to Start>Run, and launch the Registry Editor (Regedit.exe).
- Go to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesi8042prtParameters.
- Go to Edit, select New | DWORD Value and name the new value CrashOnCtrlScroll.
- Double-click the CrashOnCtrlScroll DWORD Value, type 1 in the Value Data textbox, and click OK.
- Close the Registry Editor and restart your system.
When you want to force a BSOD, press and hold the [Ctrl] key on the right side of your keyboard, and then press the [ScrollLock] key twice. The BSOD will appear. Now you can continue with your failover tests. Enjoy!
Note: If your system reboots instead of displaying the BSOD, you’ll have to disable the Automatically Restart setting in the System Properties dialog box. To do so, follow these steps:
- Press [Windows]-Break.
- Select the Advanced tab.
- Click the Settings button in the Startup And Recovery panel.
- Clear the Automatically Restart check box in the System Failure panel.
- Click OK twice.
I hope you found this valuable. For your other automated testing needs, may I suggest a 30-day trial of TestComplete?