Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to manually BSOD a machine for some testing. I already attempted to use the Registry edit with autohotkey to no avail. I need to pull this off via a script/batch or some other way that can be scripted.

share|improve this question
Are you using a USB keyboard? –  Hello71 Aug 8 '10 at 15:00
AutoHotkey will not work because the Ctrl-ScrollLock code is contained inside the keyboard driver (which AutoHotkey obviously bypasses). –  grawity Aug 8 '10 at 15:58

5 Answers 5

up vote 5 down vote accepted

I knew that there was a way to to it. I seemed to recall, from many (many!) years ago in my early Windows development days, a simple API call that would cause a system to "blue screen." It's in the Windows DDK. You're looking for KeBugCheck or KeBugCheckEx. It's intended for use by device drivers and will cause the system to break if there's a debugger attached. If there's no debugger, the system will BSOD. Here's the Microsoft article that describes it:


share|improve this answer

Try this:

share|improve this answer
If you read the whole question you would see I already attempted that. –  MrStatic Aug 8 '10 at 14:38
Actually, that information is not in your question (at least not clearly), but buried in a different and poorly-linked question in which you merely hint that you had tried this. Perhaps if you had been less cryptic in your questions and comments I could have avoided your penalty. –  boot13 Aug 8 '10 at 15:07

You could probably download and install the debugging tools, then script the '.crash' command. I'm not sure the specifics of doing this, but it sounds feasible.


http://www.microsoft.com/whdc/devtools/debugging/default.mspx http://stackoverflow.com/questions/667581/simulating-a-bluescreen

share|improve this answer
I was thinking...and would guess that if you cannot find a way to script the .crash command directly, you might be able to build a program that finds the WinDbg window and sends keystroke messages to it. I dunno how this works on Windows 7, but it used to be somewhat straightforward on XP using the Win32 API. I might be doable in VBS too, not sure. I haven't played with Windows 7 much. –  Nextraztus Aug 8 '10 at 15:15

You can obtain Sysinternal's Process Explorer, run it as administrator, and kill winlogon.exe. Won't be a "traditional" blue screen though.

share|improve this answer

Very easy tool for manual BSOD is http://download.sysinternals.com/files/NotMyFault.zip Just run notmyfault /crash

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.