<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=11356004&amp;blogName=xception&amp;publishMode=PUBLISH_MODE_BLOGSPOT&amp;navbarType=BLUE&amp;layoutType=CLASSIC&amp;searchRoot=http://openrent.blogspot.com/search&amp;blogLocale=en_US&amp;homepageUrl=http://openrent.blogspot.com/&amp;vt=-2179510228592399674" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger Navigation and Search"></iframe> <div></div>

Take a minidump without breaking a process

Lets say you want to take a dump of an IIS application pools. Login to your server, open a command prompt, and run the following command (where the -p parameter is the PID of the application pool)

ntsd -pvr -p 1640 -c ".dump /ma /u w3wp.dmp; q"

This will popup another DOS box with a variety of ntsd debugger information flashing by. It will look like this:


The window will eventually close, and you will be left with a dump file in the root of your C: drive, like this:


You now have access to a minidump to open with WinDBG.