If the Command Prompt doesn't work, PowerShell can often dig deeper into the registry.
Get-WindowsKey
Before you start, you need to know how Windows was activated. This determines how you "back it up." how to backup windows 11 license key
Store it as a "Secure Note" in Bitwarden, LastPass, or 1Password. If the Command Prompt doesn't work, PowerShell can