Re: How to have system service to access network



As LocalSystem on computer A, you cannot map a network resource on
computer B using LocalSystem. That would be quite a security hole.
Given that the service must keep running as LocalSystem, could you use
a proxy account to map drives with? Check out
WindowsImpersonationContext.

J Wolfgang Goerlich

On May 1, 9:18 pm, Bob <B...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I have a VB app that i runs from a LocalSystem service with
CreateProcessAsUser:
The app gets the token of the service so it runs under LocalSystem too.

When i call in my app that as said run from the Localsystem service to:
WNetAddConnection2, i get error 1312 (ERROR_NO_SUCH_LOGON_SESSION)
In my opinion since a LocalSystem service does not have access to network.
Can i make the app that run from the LocalSystem service to access Network
so that WNetAddConnection2 will work?
I run it on XP pro and Vista - same problem.

(The app and The service must keep running under LocalSystem - i do not want
to change that)

Thanks!


.



Relevant Pages

  • Re: System Service and network
    ... That is why the app runs under systemaccount. ... as LocalSystem and another running as NetworkService. ... It provides CreateProcessAsuser the service token. ... network using the machine account. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Executing Commands From Windows Service
    ... to all local resources, but severely limited in a handful of cases, ... one of which is any attempt to access the network. ... The LocalSystem account runs without any local Windows credentials ... the TCP/IP connection that plink is making is not ...
    (comp.lang.python)
  • Re: System Service and network
    ... as LocalSystem and another running as NetworkService. ... It provides CreateProcessAsuser the service token. ... network using the machine account. ... The app gets the token of the service so it runs under LocalSystem too. ...
    (microsoft.public.win32.programmer.networks)
  • RE: Mount Network Share as Drive Even When No User is logged in
    ... > LocalSystem to access even when there is no user logged into the computer. ... > interact with this application, therefor, it must run as LocalSystem. ... > problem is, LocalSystem does not have Network Access, and this program needs ... > to access a folder on the network. ...
    (microsoft.public.windowsxp.network_web)
  • Re: LocalSystem Service and WNetAddConnection2
    ... NetworkService and LocalSystem should have the same credentials on the network (which is the computer account in a domain scenario, ...
    (microsoft.public.win32.programmer.networks)