views:

26

answers:

1

I'm using the following code to impersonate a different user. http://www.codeproject.com/KB/cs/zetaimpersonator.aspx

The problem is that I also need to call a local executable. When attempting to access the .exe I'm getting the error "Access Denied". I've tried adding the impersonated user to the file permissions but that didn't appear to work.

So my question, is there an easy way to break out of the impersonated user and come back in?

I'm open to other suggestions as well.

A: 

I had to add the impersonated user under the Admin group. I dont like it, but its fixed.

Farstucker