Dear asnake haile,
Thank you for reaching out to the Microsoft Q&A.
I’m sorry to hear that you’re having trouble retrieving your Windows product key using the WMIC command.
You can try following these steps below to solve the issue:
- Using PowerShell:
- Press Windows + X, select Terminal (Admin)
- Run this command:
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey - If the key is available, it'll show up here
- Check your Microsoft account:
- If you purchased a digital copy of Windows from the Microsoft Store, the product key might be in your Microsoft account order history. Log in to your account on a web browser to check.
I hope this could help. If you have any further issues, we are happy to assist.
To assist others who might have similar questions and to help us improve our support system, we kindly encourage you to "Accept the answer" if it successfully addressed your concern. Accepting an answer lets other users know that this solution worked for you, and it also helps us track the effectiveness of our support efforts.
Best regards,
Bryan Vu | Microsoft Q&A Support Specialist