DomainOptions Constructor

Initializes a new instance of the DomainOptions class.

Definition

Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.1.0+446b05628b4ec6933ca1b84b1f778ac43fb60ce9
C#
public DomainOptions(
	string domain,
	DomainCredential credential
)

Parameters

domain  String
The domain to join.
credential  DomainCredential
The credentials of a domain account that has permission to join the domain.

Remarks

  Security Note

The password of the account used to join the domain is stored in plain text in the answer file. Do not store answer files with sensitive passwords in public locations.

Exceptions

ArgumentNullExceptiondomain or credential is .

See Also