Access is Denied
Windows 7 installed without a hitch, but I noticed that the bat files I use to turn certain programs on and off no longer worked. Specifically, I have bat files that use “NET START” and “NET STOP” to toggle Windows Services. When I’d run those, I’d get “Access is Denied”. This was particularly annoying b/c I use Launchy to run these bat files to quickly set up and tear down an environment, and this new “security feature” was breakin’ my stride. Here’s how to remind Windows that you are its boss.
Do As I Say, Dammit!
Set Command Prompt to Run As Administrator
- From the Start menu, filter on “Command Prompt”
- Right click on it, select “Properties”. In the “Shortcut” tab, click the Advanced button.
- Check the “Run as Administrator” checkbox
- Restart your computer
Here’s a screenshot of what these boxes look like (taken with the new Windows 7 “Snipping Tool”):
It was my experience that you need to restart your computer. When I changed these settings initially, it didn’t change the behavior of my bat files at all. Only after restart did my “Access is Denied” problems go away.