Skip to content

olejorgensen/Impersonator

Repository files navigation

Impersonation

Execute code under another user context.

The account that instantiates the Impersonator class must have the 'Act as part of operating system' privilege set.

Example:

using (new Impersonator( "myUsername", "myDomainname", "myPassword"))
{
	// code that executes under the new context
}

About

Impersonate a user in a using block

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages