Login.Create Method (SecureString, LoginCreateOptions)
Creates a login account on the instance of SQL Server as defined by the Login object.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
The [FlagsAttribute] enumeration, LoginCreateOptions contains values that are used to specify the password options when you create a logon.
None = 0
IsHashed = 1
Indicates if the password has already been hashed, which allows passwords to be reapplied to a login.
MustChange = 2
Indicates whether the user has to change the password on the next login.