Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using host.HostID() on the Windows platform The uuid obtained is different from the cmd wmic csproduct get uuid #1555

Open
kakj-go opened this issue Nov 28, 2023 · 2 comments

Comments

@kakj-go
Copy link

kakj-go commented Nov 28, 2023

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
image

host.HostID() return b418a861-8693-4e57-904a-448e0451ab7b

@futurecad
Copy link

How did you solve it in the end?

@futurecad
Copy link

I think the two methods of obtaining are different. If you use the cmd method, there will be some vmic that does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants