• Home
  • Cisco
  • Exchange
  • Linux
  • Navision
  • Network
  • Virtualization
  • Windows
  • About

    Run EXE as a service

    What do you do if you want an *.exe to run as a service?

    You need two files from the “Windows Server 2003 Resource Kit Tools”. Instrsrv.exe and Srvany.exe.
    Run this command:

    c:\reskit\INSTSRV.EXE “Your service name” c:\reskit\SRVANY.EXE
    Now the service “Your service name” exsists on the server.

    You now need to add the actual exe to be run by the service.
    This is done in Regedit.
    Navigate to this registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\”your service name”.Add Key and name it Parameters.

    In this Add Value and type EXE information.
    Value Name: Application
    Data Type : REG_SZ

    Windows Server 2003 Resource Kit Tools