Is there a Windows equivalent to the unix hostid?

http://linux.about.com/library/cmd/blcmdl1_hostid.htm

link|improve this question

60% accept rate
Since hostid doesn't do anything useful these days, could you describe what exactly are you trying to get? An unique machine identifier? – grawity Jun 23 '11 at 22:22
feedback

3 Answers

Not really, at least not exactly. HostID was usually a way to lock a piece of software to a node. Even in the later days of Solaris you could easily change the HostID, making it less locked to hardware.

You could use the network MAC, which should be globally unique. But these are easily cloned

You can also try the CPUID

There have been similar questions answered on stackoverflow

link|improve this answer
These days in Linux/glibc the hostid is just read from /etc/hostid if exists. – grawity Jun 23 '11 at 22:26
feedback

The registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography has a value MachineGuid containing a randomly-generated GUID. This is static, but easily changeable.

link|improve this answer
feedback

You can install cygwin which comes with the hostid command.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.