Without adding dependency of WMIC and getting MAC.
I know we can read MachineGuid in registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography
and it won't change unless user formats the PC. But the issue is it can be easily bypassed if the hard drive is cloned.
I came across https://msdn.microsoft.com/en-us/library/windows/desktop/ms724423%28v=vs.85%29.aspx
Does the info returned by
GetSystemInfo ()
remain same after OS installation, and avoid cloning issue.