Guest User

Untitled

a guest
Feb 7th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. SecureString theSecureString = new NetworkCredential("", "password").SecurePassword;
  2.  
  3.  
  4. Process installProcess = new Process();
  5.  
  6. installProcess.StartInfo.UseShellExecute = false;
  7. installProcess.StartInfo.UserName = "admin";
  8. installProcess.StartInfo.Password = theSecureString;
  9. installProcess.StartInfo.FileName = @"installer.exe";
  10.  
  11.  
  12. installProcess.Start();
Add Comment
Please, Sign In to add comment