Print the OEM Windows product key from firmware - #7480
Merged
Conversation
Machines that shipped with Windows keep the OEM key in the ACPI MSDM table. `omarchy windows license key` reads it with strings, then cat.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a CLI command to retrieve an OEM Windows key from ACPI firmware.
Changes:
- Adds firmware key extraction with fallback behavior.
- Adds shell tests and Windows VM documentation.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
bin/omarchy-windows-license-key |
Reads and prints the firmware key. |
test/shell.d/windows-license-key-test.sh |
Tests extraction and failure paths. |
manual/28-windows-vm.md |
Documents key retrieval and activation limitations. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
||
| The version installed is Windows 11 Pro, unactivated. You'll need your own license key to use the gated features. | ||
|
|
||
| If this computer shipped with Windows, the OEM key is still in firmware even after installing Omarchy. Print it with `omarchy windows license key`. That key is bound to this machine — it will activate Windows reinstalled on this hardware, but it usually will not activate the VM. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
omarchy windows keyto print the OEM Windows product key still stored in firmware after Omarchy is installed./sys/firmware/acpi/tables/MSDMwithstringsfirst, then fall back tocat, and print only the key so it can be piped.Testing
bash test/shell.d/windows-key-test.sh./test/cli