How can I give an account permission to start or stop a particular Windows Service using SC.exe?
What I'm trying to do is from one machine A call these operations from another machine B:
net.exe use \\B /delete
net.exe use \\B /user:B\<username> <password>
sc.exe \\B stop <service name>
The issue is that the first two operations pass but the third one fails.