LocalCredential Constructor

Creates a new instance of the LocalCredential class.

Definition

Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.1.0+446b05628b4ec6933ca1b84b1f778ac43fb60ce9
C#
public LocalCredential(
	string userName,
	string password,
	string group = "Administrators"
)

Parameters

userName  String
The user name of the account.
password  String
The password of the account.
group  String  (Optional)
The group to add the user to. Multiple groups may be separated by semicolons.

Remarks

  Security Note

Passwords in answer files are not encrypted. They are plain text at worst, and base64 encoded at best. Do not store answer files with sensitive passwords in public locations.

Exceptions

ArgumentNullExceptionuserName or password or group is .

See Also