Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 0 down vote accepted

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

share|improve this answer

Your Answer


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.