Don't know if .NET has a function, but you can via API. http://msdn.microsoft.com/library/de...mputername.asp

Says it requires a reboot.

Mike