Windows 11 Key Viewer -
If the command-line methods don't work (which can happen if your key is a "Digital License" linked to your Microsoft account), these reputable tools can extract it for you: NirSoft ProduKey
powershell "(Get-WmiObject -Class SoftwareLicensingService).OA3xOriginalProductKey" windows 11 key viewer