kentrg11
asked on
C# ASP .net application run as current logged in account (admin)
Hi guys i wrote a small application which changes directory and registry on remote computers. When i set it to run with admin account in IIS it works perfectly. However i don't want to use one admin account. I want to have the current logged in user who has rights access the application via IE and make the changes . Right now they all get "access denied" even though they are all domain admins.
Im sure I'm not defining something correctly. Any help would be appreciated
this is a Windows 7 enviroment
Thanks
Im sure I'm not defining something correctly. Any help would be appreciated
this is a Windows 7 enviroment
Thanks
Set impersonation="true" in the web.config.
ASKER
do i need <authentication mode="windows">
Yes, impersonation will work with windows authentication (actually a windows user account)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Mods can we move this to IIS category please.
ASKER
resolved
ASKER
figured it out