gopsutil
gopsutil copied to clipboard
Using host.HostID() on the Windows platform The uuid obtained is different from the cmd `wmic csproduct get uuid`
Is your feature request related to a problem? Please describe.
Using host.HostID() on the Windows platform The uuid obtained is different from the cmd wmic csproduct get uuid
Describe the solution you'd like
add method host.MachineCode(), this method use cmd wmic csproduct get uuid to get uuid
Additional context
host.HostID() return b418a861-8693-4e57-904a-448e0451ab7b
How did you solve it in the end?
I think the two methods of obtaining are different. If you use the cmd method, there will be some vmic that does not exist.