Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Launch an application under admin privilege

Hi,
I am new in windows security. Anyone has the source code that launch an application
under admin privilege or the links to the websites that relate to this topic,
please share with me.
Thanks in advance.
[232 byte] By [Phong Nguyen] at [2007-11-9 23:49:56]
# 1 Re: Launch an application under admin privilege
there is no notion in windows of bumping up in privs. automatically, the only
way you could do this is to use a higher-priv process to start your process.
for example, using a service, which runs as an admin to start a new process.

one way you can do it, so long as you know the admin's pwd, is to call CreateProcessAsUser

"Phong Nguyen" <ntphong@tma.com.vn> wrote:
>
>Hi,
>
>I am new in windows security. Anyone has the source code that launch an
application
>under admin privilege or the links to the websites that relate to this topic,
>please share with me.
>
>Thanks in advance.
Michael Howard at 2007-11-12 0:14:51 >