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

PowerShell: Legacy Methods to Save Credentials

PowerShell version 7 or later may already have facilities to store and retrieve credentials without…

Logon Scripts

Purposes: Mapping network drives Installing and setting a user’s default printer Collecting computer system information…

Python Module: Datetime

Datetime Programs often include dates and time to perform interactive greetings, calculate age, stamping backups,…