I\'d like to get an id unique to a computer with Python on Windows and Linux. It could be the CPU ID, the motherboard serial, ... or anything else.
I looked at sever
Funny! But uuid.getnode return the same value as dmidecode.exe.
subprocess.Popen('dmidecode.exe -s system-uuid'.split()) 00000000-0000-0000-0000-001FD088565A import uuid uuid.UUID(int=uuid.getnode()) UUID('00000000-0000-0000-0000-001fd088565a')