Solved

Non Admin Start/Stop windows Service

Posted on 2014-09-08
2
341 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
2 Comments
 
LVL 68

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now