Solved

Non Admin Start/Stop windows Service

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

710 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