{"id":2902,"date":"2017-10-23T00:41:21","date_gmt":"2017-10-23T00:41:21","guid":{"rendered":"http:\/\/pariswells.com\/blog\/?p=2902"},"modified":"2017-10-23T00:41:21","modified_gmt":"2017-10-23T00:41:21","slug":"how-to-run-exe-as-a-service-in-windows","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/how-to-run-exe-as-a-service-in-windows","title":{"rendered":"How to run .exe as a service in Windows"},"content":{"rendered":"<p>There is a tool already in windows which can be used per below<\/p><p>sc.exe create &#8220;service name&#8221; binpath= &#8220;path\\to\\.exe&#8221; start= auto<\/p><p>However, only programs designed to implement ServiceMain can be run as a service with sc.exe. You might get\u00a01053 Errors when creating services with above , if so you&#8217;ll need something like<\/p><p><strong>Free<\/strong><\/p><ul><li>https:\/\/nssm.cc\/<\/li><\/ul><p><strong>Paid For\u00a0<\/strong><\/p><ul><li>FireDaemon<\/li><li>AlwaysUp<\/li><\/ul><p>to run any arbitrary .exe as a service.<\/p>","protected":false},"excerpt":{"rendered":"<p>There is a tool already in windows which can be used per belowsc.exe create &#8220;service name&#8221; binpath= &#8220;path\\to\\.exe&#8221; start= autoHowever, only programs designed to implement ServiceMain can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2177,2173,1344,1042,2172,2174,2175,2176,1385],"class_list":["post-2902","post","type-post","status-publish","format-standard","hentry","category-research","tag-2177","tag-alwaysup","tag-error","tag-exe","tag-firedaemon","tag-nssm-cc","tag-process","tag-sc-exe","tag-service"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=2902"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2902\/revisions"}],"predecessor-version":[{"id":2903,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2902\/revisions\/2903"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=2902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=2902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=2902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}