Quickest way to run IISRESET as administrator
- by Chris Adams
Trying to optimize my day here, making do with IIS...
When executing IISRESET from the Run dialog or from cmd.exe, I get an access denied error. So executing IISRESET gets annoying - involving both mouse and keyboard:
Start - Run - cmd (right-click, Run as Administrator)
Agree to the UAC dialog
Type iisreset, hit enter
I'm looking to be able to run IISRESET as quickly as possible. Ideally I could just go Start - Run - iisreset - Enter, and the UAC prompt would pop up. I tried to enable "Run this program as an Administrator" but it was greyed out, even when I opened the properties dialog as NT AUTHORITY\SYSTEM.
Thinking of making a Visual Studio macro and a toolbar button; anyone got any other ideas?