Can ASP.NET be configured to run as an administrator when UAC is enabled?

Posted by Steve Eisner on Stack Overflow See other posts from Stack Overflow or by Steve Eisner
Published on 2010-03-11T03:11:20Z Indexed on 2010/03/11 4:55 UTC
Read the original article Hit count: 182

Filed under:
|
|
|

I can't seem to find any information that indicates whether ASP.NET can be configured (through web.config or maybe machine.config) to run as a real administrator on a machine with UAC enabled.

By this I mean, even if you set it to impersonate an Administrator account, UAC will disable that account's ability to act as an Administrator by returning a token set that hides the administrator role. For any checks such as IsInRole, the running account is effectively not an administrator at all.

So ... Let's say I want to ignore all good advice and just go ahead and run a web app on Vista with administrator permissions. Is it even possible?

Alternatives welcome. (Core reason for needing administrator privileges: to stop or start services that are running on that machine.)

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about uac