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

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
 
P

Pegasus \(MVP\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top