{"id":304,"date":"2007-05-31T12:45:39","date_gmt":"2007-05-31T17:45:39","guid":{"rendered":"http:\/\/192.168.33.66\/wp\/?p=304"},"modified":"2007-05-31T12:45:39","modified_gmt":"2007-05-31T17:45:39","slug":"shutdown-reason","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=304","title":{"rendered":"shutdown reason"},"content":{"rendered":"<p>Question:<\/p>\n<p>Being responsible for a PC cluster, it would be nice for me to automatically keep track of the reasons why a certain PC was restarted. Instead of manually logging them, is there a way where the PC itself can keep such a log, so that I can consult it afterwards?<br \/>\nAnswer:<\/p>\n<p>Yes there is. Go down the registry tree<\/p>\n<p> HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Reliability<\/p>\n<p>\nIn there, you should find a key value called &#8220;ShutdownReasonUI&#8221; (if not, create one, of data type REG_DWORD). Edit it and set its value to 1.<\/p>\n<p>When you now shut down or restart the PC, the shutdown dialog box is expanded and contains a tick box for planned or unplanned restart, as well as a comment menu. It has to be filled in before the shutdown can take place.<\/p>\n<p>This will create an entry in the Event Log which may then be consulted after the reboot. Its event ID is 1074.<\/p>\n<p>To undo this operation, reset the above key value to 0.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: Being responsible for a PC cluster, it would be nice for me to automatically keep track of the reasons why a certain PC was restarted. Instead of manually logging them, is there a way where the PC itself can &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=304\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-304","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=304"}],"version-history":[{"count":0,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/304\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}