Solved

Non Admin Start/Stop windows Service

Posted on 2014-09-08
2
333 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

Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Join & Write a Comment

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
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.

747 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

10 Experts available now in Live!

Get 1:1 Help Now