public void Usage() { Impersonator.RunImpersonatedAction("domain.local", "username", "password", () => { //Do something here with account [email protected] }); }