This question is related to http://stackoverflow.com/questions/54989/change-windows-hostname-from-command-line, but I'm in a different situation. The netdom tool will not work on a computer not joined to a domain. I've tried setting the hostname from the registry, but I was wondering if there was another way from the command-line.
migrated from stackoverflow.com Jun 9 '10 at 19:06
Right from the link you provided:
Then reboot with