AnswerFileOptionsComputerName Property

Gets or sets the computer name of the system.

Definition

Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
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