Hi,
I believe you will have to PInvoke the Win32 API functions SetComputerName
or SetComputerNameEx.
enum COMPUTER_NAME_FORMAT
{
ComputerNameNetBIOS,
ComputerNameDnsHostname,
ComputerNameDnsDomain,
ComputerNameDnsFullyQualified,
ComputerNamePhysicalNetBIOS,
ComputerNamePhysicalDnsHostname,
ComputerNamePhysicalDnsDomain,
ComputerNamePhysicalDnsFullyQualified,
ComputerNameMax
}
[DllImport("Kernel32")]
static extern bool SetComputerNameEx( [In] COMPUTER_NAME_FORMAT NameType,
string lpBuffer );
Regards
Chris Taylor