Switching from System context to User Context



Hi,

We have a service which runs in system context( it starts before the user is
logged on), and this service needs to read and validate some files. This
does not work if the user removes permissions for system under security tab
of properties.

So we want to know how to change the service context to logged on user
context so that we will not have above mentioned issue.


will the setthreadtoken() work.

Any kind of information will be appreciated.

thanks,
Kedar.


.



Relevant Pages

  • Re: Switching from System context to User Context
    ... We have a service which runs in system context(it starts before the user ... and this service needs to read and validate some files. ... login, for example) but it doesn't give you access to network resources, and ...
    (microsoft.public.win2000.developer)
  • Switching from System context to User Context
    ... We have a service which runs in system context(it starts before the user is ... and this service needs to read and validate some files. ...
    (microsoft.public.win2000.file_system)
  • Switching from System context to User Context
    ... We have a service which runs in system context(it starts before the user is ... and this service needs to read and validate some files. ...
    (microsoft.public.win2000.security)
  • Switching from System context to User Context
    ... We have a service which runs in system context(it starts before the user is ... and this service needs to read and validate some files. ...
    (microsoft.public.win2000.developer)
  • Re: whats the difference in the following code?
    ... In this exact context there's no real difference. ... world when you need to validate that a input value is a number and has ... so really I have no idea why the author claims ternary statements are ...
    (php.general)