press win + r
sysdm.cpl
Advanced
Startup and Recovery
Settings
tick on Write an event to the system log
-now again tick Automatically restart
-Under Write debugging informationselect Kernel memory dump
-Dump file address must be
-%SystemRoot%\Memory.DMP
-Now tick on Overwrite any existing file
-Apply ok
-Restart ur pc
