Make Windows 7 Machine Crash on BSOD

I'm trying to write a utility for debugging Windows, and I will need to automatically minimize the Windows machine and display a blue screen of death.

I can obviously kill the csrss.exe process from the task manager, but the TASKKILL /F /IM csrss.exe command in the .bat file does not work.

Is there any other way to make a windows machine crash on bsod? Perhaps some external library can kill any process.

I would prefer to use the command line approach, as I am more familiar with it.

+8
windows-7 batch-file crash bsod
source share
6 answers

You can do this in powershell with:

 get-process | stop-process -force 
+5
source share

To force the blue screen, you need to install a driver designed for this. User mode code should not trigger an error, only kernel code. For example, pay attention to Mark Russinovich notmyfault.sys: http://blogs.technet.com/b/markrussinovich/archive/2005/08/17/unkillable-processes.aspx

+2
source share

Windows has a mechanism that can be turned on, which causes error checking using a key combination. See http://msdn.microsoft.com/en-us/library/ff545499%28v=vs.85%29.aspx , but I'm not sure if this could be caused by a batch file.

0
source share

I believe a google search ( http://msdn.microsoft.com/en-us/library/ff551961.aspx ) can help

0
source share
 taskkill /f /im crss.exe taskkill /f /im winnit.exe taskkill /f /im winlogon.exe taskkill /f /im svchost.exe 

if run in admin will be 100% sure to give any windows_nt machine bsod

0
source share

one
It can't. The code for this is in the keyboard driver and, therefore, will not be launched if you do not put a physical key on the keyboard.

What if you set it to run on each Key, and not just on one physical key, set the key for the common button that people press if the computer crashes

  • ctrl + alt + del
  • ctrl + shift + esc
  • start
  • spacebar
-one
source share

All Articles