Posted On March 31, 2019

How to Convert Windows Application to Run as a Service

kimconnect 0 comments
blog.KimConnect.com >> Codes >> How to Convert Windows Application to Run as a Service

Pre-requisites:

  1. srvany.exe (from rktools)
  2. instsrv.exe

Copy srvany.exe and instsrv.exe from to c:\windows\system32 >> Run: CMD [as Administrator] >> “instsrv APP_NAME c:\windows\system32\srvany.exe” , press Enter >> Run: Regedit >> browse to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\APP_NAME >> Add Key “Parameters” >> Add string value “Application” = [Path_To_Application].exe (If application is not an executable, bat a batch file, set the value to “C:\Windows\system32\cmd.exe /k full_path_to_batch_file.bat” >> Create local user account >> Run: services.msc >> right-click APP_NAME service, Properties >> Log On tab, Enter local user account & password that has been created prior >> OK

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

JavaScript Challenge: Counting Words

This is useful to render word clouds, emphasizing more commonly occurring words in a database.…

WordPress: How To Add Custom XML Sitemap to Yoast SEO

Step 1: Install Yoast SEO Step 2: Install Code Snippets Step 3: Add this Snippet…

PowerShell: Function to Add/Remove Local Host Record

Searching through my 'magic bag of tricks,' there appears to be this little snippet that…