S
S
Snort2015-07-14 13:23:51
Windows
Snort, 2015-07-14 13:23:51

How to run a program from a service?

There is a service that launches a console program in the interval. How can I run a program from a service in an authorized user session? Now I can only run the program in a service session, and there are no objects I need there. Or if converted into a background application, how to restart the process when it closes or fails.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem @Jump, 2015-07-14
curated by the

Well, as an option, run a batch file from the service that will launch the program under the desired user, if the service itself does not have mechanisms for specifying the user.

R
Roman, 2015-07-14
@yarosroman

to launch through runas or it is easier to use the scheduler.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question