Home All Groups Group Topic Archive Search About

Impersonation without credentials ?

Author
17 Jan 2006 11:19 AM
Jarrod Morrison
Hello all

Is it possible to use Impersonation from inside a windows service to
impersonate the logged on user without supplying any credentials and
launching a program as that user ? My problem is that when launching
external apps from my service it does so as the services logon account not
the logged on user. If not does anybody have any suggestions for how to do
so ?

Many thanks

Author
17 Jan 2006 1:36 PM
andy
Jarrod Morrison wrote:

> Hello all
>
> Is it possible to use Impersonation from inside a windows service to
> impersonate the logged on user without supplying any credentials and
> launching a program as that user ? My problem is that when launching
> external apps from my service it does so as the services logon account not
> the logged on user. If not does anybody have any suggestions for how to do
> so ?
>
> Many thanks

So you have a user's app which is interacting with a service?
Can you not launch whatever from the user's app?
Author
17 Jan 2006 8:38 PM
Jarrod Morrison
Hi andy

The service runs in the background and talks to an sql server and accepts
remote tcp connections, the service monitors what the user is doing and
records information at different times, i need to be able to send a remote
command to open an app from time to time as the logged on user from the
service program


Show quoteHide quote
"andy" <ao***@lycos.co.uk> wrote in message
news:1137505000.771484.208560@g44g2000cwa.googlegroups.com...
>
> Jarrod Morrison wrote:
>
> > Hello all
> >
> > Is it possible to use Impersonation from inside a windows service to
> > impersonate the logged on user without supplying any credentials and
> > launching a program as that user ? My problem is that when launching
> > external apps from my service it does so as the services logon account
not
> > the logged on user. If not does anybody have any suggestions for how to
do
> > so ?
> >
> > Many thanks
>
> So you have a user's app which is interacting with a service?
> Can you not launch whatever from the user's app?
>
Author
17 Jan 2006 6:35 PM
Paul Clement
On Tue, 17 Jan 2006 22:19:53 +1100, "Jarrod Morrison" <jarr***@ihug.com.au> wrote:

¤ Hello all
¤
¤ Is it possible to use Impersonation from inside a windows service to
¤ impersonate the logged on user without supplying any credentials and
¤ launching a program as that user ? My problem is that when launching
¤ external apps from my service it does so as the services logon account not
¤ the logged on user. If not does anybody have any suggestions for how to do
¤ so ?

See the following thread:

http://tinyurl.com/b2r3x


Paul
~~~~
Microsoft MVP (Visual Basic)