V
Varangian
Hello
how do I get a WindowsIdentity on a machine other than the
GetCurrent(); ?
how do I get a WindowsIdentity on a machine other than the
GetCurrent(); ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Varangian,
Take a look at the about documentation for the
WindowsImpersonationContext object. There is a code example on how to
impersonate another user using the Impersonate method on the WindowsIdentity
class.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Varangian said:Hello
how do I get a WindowsIdentity on a machine other than the
GetCurrent(); ?
Varangian said:ok thanks for the reply....
what if I need to manipulate the local Administation group? I'm on the
right track using the method you said?

Varangian said:oh nice man thanks very much for your help.
I'll search for "NetGroupAddUser" must be a function from DllImport..
![]()
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.