Quickest way to run IISRESET as administrator
Posted
by
Chris Adams
on Super User
See other posts from Super User
or by Chris Adams
Published on 2012-12-07T03:39:43Z
Indexed on
2012/12/07
5:09 UTC
Read the original article
Hit count: 540
iis
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?
© Super User or respective owner