Skip to content

Conversation

@IgorKorkin
Copy link
Contributor

  • Replace the legacy SLIsGenuine-based check, which causes false positives in many real-world machines, with a WMI-based SoftwareLicensingProduct query that reads the official LicenseStatus field.
  • Internally previous and newly added approaches query the same ID: 55c92734-d682-4d71-983e-d6ec3f16059f.
  • The new implementation exposes extended licensing states (0–6) defined by Windows, such as grace, allowing us to treat only status 0 (Unlicensed) as definitively pirated and avoid misclassifying valid configurations.
  • see https://learn.microsoft.com/en-us/previous-versions/windows/desktop/sppwmi/softwarelicensingproduct#LicenseStatus
status details
0 Unlicensed
1 Licensed
2 OOBGrace (Out-of-Box Grace)
3 OOTGrace (Out-of-Tolerance Grace)
4 NonGenuineGrace
5 Notification
6 ExtendedGrace

@IgorKorkin IgorKorkin changed the title Fix Windows license check: use WMI to get the detailed status, avoid … Fix Windows license check: use WMI to get the detailed status Jan 26, 2026
@IgorKorkin IgorKorkin force-pushed the fix-licensing-product branch from e45f570 to d0b9000 Compare January 26, 2026 14:35
@IgorKorkin
Copy link
Contributor Author

@ayoubfaouzi pls, help me to troubleshoot the issue with build.

@ayoubfaouzi
Copy link
Owner

Hey @IgorKorkin, Let me have a look.

@ayoubfaouzi
Copy link
Owner

Nice work @IgorKorkin ! I just re-run your build, it should work now!

Cheers.

@ayoubfaouzi ayoubfaouzi merged commit bcff497 into ayoubfaouzi:master Jan 26, 2026
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants