Restarting Services Without Admin Rights

  • Thread starter Thread starter Dragon
  • Start date Start date
D

Dragon

Guest
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.
 
Re: Restarting Services Without Admin Rights


"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.
 
Re: Restarting Services Without Admin Rights

Thank you Pegasus. I will give it a try.


"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:u3x2XQOsIHA.1952@TK2MSFTNGP05.phx.gbl...
>
> "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.
>
 
Back
Top