title: Automate the creation of a user in IIS7
body: <p>How can I automate the creation of a user in IIS7?</p>
  
  <p>I'm using C#.  I have code that automates the creation of a website, and I found some examples for automating the creation of an FTP site. </p>
  
  <p>I also need to automate the creation of a IIS user for each FTP site that I create. </p>
  
  <p>I could possibly just edit the administration.config file, under        I could just add another element for each new user, but I wouldn't know how to set the password attribute, which is encoded.   Plus, there's gotta be an easier more reliable way to do this.</p>
  
  <p>The FTP users that I need to set up are not associated with any website.  These users will only log into the FTP site, not into any website.</p>
  
  <p>To manually add a user, I can run the feature "IIS Manager Users", then simply click on "Add User..."</p>
  
  <p>This adds an entry to the config file, as I mentioned in my original post. </p>
  
  <p>I then associate that user to my ftp site by adding an FTP Authorization Rule for that user.</p>
  
  <p>As for my current configuration... On IIS7, under Management Service, under "Identity Credentials" I selected "Windows credentials or IIS Manager credentials".</p>