Re: Start external Process under different user account in ASP.NET???

From: bruce barker (nospam_brubar_at_safeco.com)
Date: 07/13/04


Date: Tue, 13 Jul 2004 08:52:13 -0700

you should use CreateProcessWithTokenW. you will have use DuplicateToken to
get a primary token necessary for the call.

-- bruce (sqlwork.com)

"Shawn Anderson" <sanderson@eye-catcher.com> wrote in message
news:O6kE4jOaEHA.2056@TK2MSFTNGP12.phx.gbl...
> Does anyone know how to get Process.Start() to use the security context of
> the user that my ASP.NET app is impersonating? It seems that it is always
> run as the ASPNET User no matter what I do.
>
> I know that I can look into CreateProcessWithLogonW, but I really do not
> want to ask and store a users password.
>
> Anyone have any thoughts?
>
> Thanks
> Shawn
>
>



Relevant Pages


Loading