Skip to content

Print the OEM Windows product key from firmware - #7480

Merged
dhh merged 2 commits into
quattrofrom
windows-license-key
Aug 19, 2026
Merged

Print the OEM Windows product key from firmware#7480
dhh merged 2 commits into
quattrofrom
windows-license-key

Conversation

@dhh

@dhh dhh commented Aug 19, 2026

Copy link
Copy Markdown
Member

Summary

  • Add omarchy windows key to print the OEM Windows product key still stored in firmware after Omarchy is installed.
  • Read /sys/firmware/acpi/tables/MSDM with strings first, then fall back to cat, and print only the key so it can be piped.
  • Document the command in the Windows VM manual, including that the key is bound to this machine and usually will not activate the VM.

Testing

  • bash test/shell.d/windows-key-test.sh
  • ./test/cli

Machines that shipped with Windows keep the OEM key in the ACPI MSDM
table. `omarchy windows license key` reads it with strings, then cat.
Copilot AI balanced review requested due to automatic review settings August 19, 2026 11:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread manual/28-windows-vm.md Outdated

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.
Copilot AI review requested due to automatic review settings August 19, 2026 11:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@dhh
dhh merged commit 2684c4b into quattro Aug 19, 2026
3 of 4 checks passed
@dhh
dhh deleted the windows-license-key branch August 19, 2026 11:59
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