Stopping a process as a impersonated user

  • Thread starter Thread starter Riaan Cillié
  • Start date Start date
R

Riaan Cillié

Hi

I need a bit of help. I need to write a utility that will end a process as
the administrator. I have managed to impersonate the administrator. The
problem is that I cannot seem to end the process after the impersonation.
The System.Diagnostics.Process object simply returns "Access Denied"

Anybody got a idea?

Thanks

Riaan
 
How did you create the impersonation token?
This can be caused by the token not being a primary token, or having a login
method that generates a token which isn't allowed to interact with the
current desktop session.

-Rob Teixeira [MVP]
 
Back
Top