Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Process proc = new Process();
- proc.StartInfo.Domain = "YourDomain";
- proc.StartInfo.UserName = "Username";
- proc.StartInfo.Password = "YourPassword";
- Process proc = new System.Diagnostics.Process();
- System.Security.SecureString ssPwd = new System.Security.SecureString();
- proc.StartInfo.UseShellExecute = false;
- proc.StartInfo.FileName = "C:/YourPath/YourProcess.exe";
- proc.StartInfo.Arguments = "Args"; //Arguments if any, otherwise delete this line
- proc.StartInfo.Domain = "domainname";
- proc.StartInfo.UserName = "username";
- proc.StartInfo.Password = "password";
- proc.Start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement