Re: CreateProcessWithLogonW on Server 2003

From: Alstersjo (Alstersjo_at_discussions.microsoft.com)
Date: 07/08/04


Date: Wed, 7 Jul 2004 23:34:01 -0700

Hi Yu Chen
I have a similar problem and have looked on LogonUser and CreateProcessAsUser but I can't find out how to write the code (I'm a beginner in programming). Do you have or know were to find a sample code for this?
Best Regards Henrik

"Yu Chen [MS]" wrote:

> That's a known issue in Windows Server 2003 - the CreateProcessWithLogonW
> API is changed to better handle the new process' use of desktop by utilizing
> "Logon Sid" in the caller's token. However the local system token (under
> which your service is running) doesn't have a "Logon sid" so the API failed
> when caller is local system.
>
> If the caller is local system, you can use LogonUser and CreateProcessAsUser
> to achieve the same thing.
>
> --
> Yu Chen [MS]
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Vincent Finn" <1@2.com> wrote in message
> news:7jnne098k8emcb7siirc4djfngh1qsn9sg@4ax.com...
> > Hi,
> >
> > Not sure if this is the right news group for this but I have a process
> > that calls CreateProcessWithLogonW
> > It works fine on 2000 and XP but I get an "Access Denied" error on
> > Server 2003.
> > The process is a service running under teh SYSTEM account.
> >
> > Does anyone know what extra permissions are required on 2003?
> > The MSDN doesn't mention anything.
> >
> > CreateProcessWithLogonW is called with LOGON_WITH_PROFILE if that
> > matters
> >
> > Any suggestions appreciated
> >
> > Vin
>
>
>



Relevant Pages

  • Re: CreateProcessWithLogonW on Server 2003
    ... >API is changed to better handle the new process' use of desktop by utilizing ... >If the caller is local system, you can use LogonUser and CreateProcessAsUser ...
    (microsoft.public.platformsdk.security)
  • Re: HELP! CreateProcessWithLogonW issue
    ... my understanding there are major differences between the two such as ... LogonUser and CreateProcessAsUser doesn't load the user's registry hive. ... >>If your service is started under Local System account, ...
    (microsoft.public.dotnet.framework)
  • Re: HELP! CreateProcessWithLogonW issue
    ... my understanding there are major differences between the two such as ... LogonUser and CreateProcessAsUser doesn't load the user's registry hive. ... >>If your service is started under Local System account, ...
    (microsoft.public.platformsdk.security)
  • Re: HELP! CreateProcessWithLogonW issue
    ... my understanding there are major differences between the two such as ... LogonUser and CreateProcessAsUser doesn't load the user's registry hive. ... >>If your service is started under Local System account, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: HELP! CreateProcessWithLogonW issue
    ... my understanding there are major differences between the two such as ... LogonUser and CreateProcessAsUser doesn't load the user's registry hive. ... >>If your service is started under Local System account, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)

Quantcast