title: Install SQL Server using PowerShell
body: <p>I have a repetitive task:</p>
  
  <ol>
  <li><p>Download SQL Server Express edition from my own site or MS Site   </p></li>
  <li><p>Install SQL Server (mixed auth mode, specific collation etc etc) </p></li>
  <li><p>Attach a database (compressed into a file) to my new installation </p></li>
  <li><p>Create some users </p></li>
  <li><p>Create file connection string according to my new installation  </p></li>
  </ol>
  
  <p>I know just one or two PowerShell commands but think is possible to accomplish this with it.</p>
  
  <p>My question is how can I do that? </p>