Start/stop Service remotely by non Admin User on Windows 2000 server

  • Thread starter Thread starter PCSupport
  • Start date Start date
P

PCSupport

I need a user to be able to start and stop one service on our server. I know
how to use Netsvc but it does not allow this user to start/stop without
admin privileges.

Does anyone have any ideas?

Thanks,

Kevin
 
PCSupport said:
I need a user to be able to start and stop one service on our server. I know
how to use Netsvc but it does not allow this user to start/stop without
admin privileges.

Does anyone have any ideas?

Thanks,

Kevin

Use the Task Scheduler on the server to run the following
batch file once every five minutes:

Line1 @echo off
Line2 if not exist \\%ComputerName%\JSmith\Service\*.txt goto :eof
Line3 if exist \\%ComputerName%\JSmith\Service\Start.txt net start
SomeService
Line4 if exist \\%ComputerName%\JSmith\Service\Stop.txt net stop SomeService
Line5 del \\%ComputerName%\JSmith\Service\*.txt

Now give the user JSmith a shortcut that creates "Start.txt"
or "Stop.txt" on a server share that he has access to.
 
Back
Top