Solved

Non Admin Start/Stop windows Service

Posted on 2014-09-08
2
356 Views
Last Modified: 2014-09-09
HI,

What is the best practice to allow an non admin user to start/stop a service on a remote server?

Also what is the best way of achieving this? Bat file or an VBS script file?

Regards,
0
Comment
Question by:jwc1972
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 70

Accepted Solution

by:
Qlemo earned 500 total points
ID: 40310251
Best way IMO is to grant that specific user the appropriate privileges for the specific service. You'll need subinacl for that (http://www.microsoft.com/en-us/download/details.aspx?id=23510).
 subinacl /service \\server\service /grant=MyDomain\ThatUser=TO
to only allow sTart and stOp of "service" on machine "server".
0
 
LVL 65

Expert Comment

by:RobSampson
ID: 40311077
That looks like it should work, and then your user would probably run a batch file with this in it
sc \\SERVER stop servicename
sc \\SERVER start servicename

Rob.
0

Featured Post

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question