Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a batch script that restarts a Windows Service with:

Net stop <servicename>
Net start <servicename>

I got around having to manually run it as Admin by creating a shortcut to it and marking this shortcut to always run as Admin.

By then turning off the need for manual confirmation when running it, I was able to run it as a normal (non-admin) user from the the command line.

When I run it via telnet however (with exactly the same user), I get an "Access is denied" error.

I get this error regardless of which commands are in the batch script, but I am also unable to run the 'Net stop/start' commands individually outside the script because of permissions errors.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

I think you may need to modify the LocalAccountTokenFilterPolicy registry key. More info here.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.