title: Exception when trying to create a new SQL account
body: <p>I always get this error when i try to add a new login into my SQL server. 
  I searched it online and I found this on StackOverflow
  <a href="https://stackoverflow.com/questions/16610379/add-windows-user-to-local-sql-server-with-powershell">Add Windows User to local SQL Server with PowerShell</a> but this didn't solve it.</p>
  
  <p>This is the error</p>
  
  <pre>Exception calling "Create" with "1" argument(s): "Create failed for Login 'bilal'. "</pre>
  
  <p>This is my code </p>
  
  <pre><code>$server="WIN-SH7H3HP7KMI\SQL2014"
  $User="bilal"
  $password="test"
  
  if(!($svr.Logins.Contains($User)))
  {
  
      $login = New-Object -TypeName Microsoft.SqlServer.Management.Smo.Login -ArgumentList $server, $User
      $login.LoginType = [Microsoft.SqlServer.Management.Smo.LoginType]::SqlLogin
      $login.PasswordExpirationEnabled = $false
      $login.Create($password)
      Write-Host("Login $loginName created successfully.")
  }
  </code></pre>