title: How to start a IIS process with specific username & password
body: <p>I'm trying to run an application from our internal website. When I use <code>Process.Start("notepad");</code> I can see that notepad process started in our web server with default identity mentioned in the app pool setting.    </p>
  
  <p>But I have to start the process with specific user name &amp; password. So I have tried to run this line of code</p>
  
  <pre><code>string password = "XXXXX";
  System.Security.SecureString securePwd = new System.Security.SecureString();
  foreach (char c in password)
  {
      // Append the character to the password.
      securePwd.AppendChar(c);
  }
  Process.Start("notepad", "username", securePwd, "domain");
  </code></pre>
  
  <p>In this case I don't even see any notepad process started in the web server. The lines of code executing because when I pass wrong password I can see my webpage throwing error of "bad username or password".</p>