23 декабря, 2016

Starter Service (win console tool)

Windows service. Check and if needed then start exe file as current user (default with limited elevation and medium integrity). Log to 'Event Log'.

Starter Service v1.3 (2016-03-15)
Author: Ruslan Zaporojets [ruzzzua@gmail.com]
Usage: starter_service.exe command
Commands:
   -i or install       Install the service.
   -s or start         Start the service.
   -t or stop          Stop the service.
   -u or uninstall     Uninstall the service.

Set values of utf-8 config file starter_service.ini:
interval   - In seconds.
exe_path   - Path of target exe file. Can use env vars, ex. %SystemRoot%.
exe_params - [optional] Command line parameters.
session_id - [optional] ID or 0 (default) for running target as active
             local user.

Example of starter_service.ini:

session_id = 0
interval = 10
exe_path = "%SystemRoot%\System32\notepad.exe"
exe_params = c:\Windows\System32\Drivers\etc\hosts 

Download

About

Was written in Visual Studio C++ (C++ with classes and exceptions + WinAPI). Example:

Комментариев нет:

Отправить комментарий