Skip to content

About

Impersonate a user in a using block

Resources

Stars

0 stars

Watchers

1 watching

Forks

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages