Re: Restarting Services Without Admin Rights by Pegasus
Pegasus
Thu May 08 01:18:25 PDT 2008
"Dragon" <noSpam_baadil@hotmail.com> wrote in message
news:%236E7GkIsIHA.5576@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> Is there a way to assign permissions to a regular user account to
> start/stop/restart particular/all services? We have an application which,
> at time, requires that we restart it's services. I rather not give someone
> admin or power user permissions just to restart these services.
>
> Thank you.
You can do it indirectly. Use the Task Scheduler to run the
following batch file once every five minutes:
@echo off
set Semaphore=d:\User Data\Semaphore\Flag.txt
if not exist "%Semaphore%" goto :eof
del "%Semaphore%"
net stop {Servicename}
net start {Servicename}
net send {UserName} "Service {ServiceName} was restarted at %time%"
Now give the user a shortcut that lets him to create the
semaphore file. Also make sure that the messenger service
runs on your server and on the user's machine.