{"id":105713,"date":"2021-09-21T07:00:00","date_gmt":"2021-09-21T14:00:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/oldnewthing\/?p=105713"},"modified":"2021-09-21T06:52:51","modified_gmt":"2021-09-21T13:52:51","slug":"20210921-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20210921-00\/?p=105713","title":{"rendered":"The CertUtil program will decode Windows error codes, and in a variety of formats"},"content":{"rendered":"<p>Some time ago, I noted that <a href=\"https:\/\/devblogs.microsoft.com\/oldnewthing\/20170919-00\/?p=97046\"> The NET HELPMSG command will decode Windows error codes, at least the simple ones<\/a>.<\/p>\n<p>Stefan Kanthak pointed out that there&#8217;s another built-in program for converting numbers to error messages, and it handles a lot more error numbers and formats than <code>NET HELPMSG<\/code> does.<\/p>\n<pre>certutil \/error 2\r\ncertutil \/error 0x80070002\r\ncertutil \/error -2147024894\r\ncertutil \/error 2147942402\r\ncertutil \/error -0x7ff8fffe\r\n<\/pre>\n<p>The first one says<\/p>\n<pre>0x2 (WIN32: 2 ERROR_FILE_NOT_FOUND) -- 2 (2)\r\nError message text: The system cannot find the file specified.\r\nCertUtil: -error command completed successfully.\r\n<\/pre>\n<p>The others say the same thing, but with a different error number:<\/p>\n<pre>0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND) -- 2147942402 (-2147024894)\r\nError message text: The system cannot find the file specified.\r\nCertUtil: -error command completed successfully.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Even more versatile than <CODE>NET HELPMSG<\/CODE>.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-105713","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>Even more versatile than <CODE>NET HELPMSG<\/CODE>.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/105713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=105713"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/105713\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=105713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=105713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=105713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}