By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,280 Members | 1,232 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,280 IT Pros & Developers. It's quick & easy.

Impersonate logged in user

P: n/a
I've got a process that is started by a Windows Service.
This process is running under the System Account.
In a couple of methods I need to impersonate the logged on user but if I try system.security.principal.windowsidentity.getcurre nt it returns the system account.
How do I get and impersonate the logged on user?
--------------------------------
From: Hugh Garske

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>mSJeVi8qv0K+iH3evH5MrQ==</Id>
Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.