Howto ...

  • Thread starter Thread starter Jacek Jurkowski
  • Start date Start date
J

Jacek Jurkowski

Run a Process using current user login?

I hava a service that works as LocalSystem
and i'm running some Process but I would
Like to run it as an current logged user or
admin even? How to obtain current user info?
 
Jacek said:
Run a Process using current user login?

I hava a service that works as LocalSystem
and i'm running some Process but I would
Like to run it as an current logged user or
admin even? How to obtain current user info?

You can run the service as a specific user (see the properties
of the service, tab LogOn).

I don't think you can find out a "currently logged on user",
because that service runs even if no-one is logged in, or when
multiple users are logged on (server, WinXP with 'fast user switching')

Hans Kesting
 
Hans is right,
That service will start at windows start up. The service will be started by
the time the user has the chance to even log on.
I think that services always run with admin rights, if you give it the right
credentials, so you really don't have to do anything there.
 
Landi said:
Hans is right,
That service will start at windows start up. The service will be
started by the time the user has the chance to even log on.
I think that services always run with admin rights, if you give it
the right credentials, so you really don't have to do anything there.

A service runs by default under the "System" account. This has FULL
right on the local system, but NO rights on the network.

Hans Kesting
 
Back
Top