AnswerFileOptionsComputerName Property

Gets or sets the computer name of the system.

Definition

Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.1.0+446b05628b4ec6933ca1b84b1f778ac43fb60ce9
C#
public string? ComputerName { get; set; }

Property Value

String
The computer name, or to let Windows pick a computer name. The default value is .

Remarks

If this property is set to a value containing the # character, each # will be replaced with a random digit between 0 and 9. For example, the value "PC-###" will be replaced with "PC-123" (or any other random number).

  Note

While random numbers can be used to generate a distinct computer name, it is not necessarily guaranteed to be a unique name on the network.

See Also