Link to home
Start Free TrialLog in
Avatar of kentrg11
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
Avatar of guru_sami
guru_sami
Flag of United States of America image

Set impersonation="true" in the web.config.
Avatar of kentrg11
kentrg11

ASKER

do i need <authentication mode="windows">
Yes, impersonation will work with windows authentication (actually a windows user account)
ASKER CERTIFIED SOLUTION
Avatar of kentrg11
kentrg11

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Mods can we move this to IIS category please.
resolved
figured it out