Windows PowerShell
Windows PowerShell is a more powerful command-line shell and scripting language, often preferred by system administrators for automation and advanced tasks. It offers an alternative command to achieve the same result as the Command Prompt, which can be useful in environments where PowerShell is the standard.
- Open the Start Menu, type ‘PowerShell’.
- Right-click on Windows PowerShell and select Run as administrator.
- In the PowerShell window, copy and paste the following command, then press Enter: (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
Like the CMD command, this PowerShell script queries the WMI for the OA3xOriginalProductKey. It is functionally identical and serves as an excellent alternative for retrieving the embedded OEM product key on both Windows 10 and Windows 11 systems. This is a best practice for how to find your Windows product key on Windows 10 and newer versions.
Using the Command Prompt (CMD)
For IT professionals, the Command Prompt provides the most direct and reliable way to find an OEM product key embedded in the device's firmware. This method is scriptable and highly efficient for system administration. This is the primary technique for how to find Windows 11 product keys using CMD or its Windows 10 equivalent.
- Open the Start Menu, type ‘cmd’ or ‘Command Prompt’.
- Right click on Command Prompt and select Run as administrator. This is essential for accessing the required system information.
- In the Command Prompt window, type the following command exactly as shown and press Enter: wmic path softwarelicensingservice get OA3xOriginalProductKey
The command queries the Windows Management Instrumentation (WMI) to retrieve the original product key from the motherboard's firmware. If a key is embedded, it will be displayed directly in the console. If the command returns a blank result, it means a key is not stored in the firmware, and you will need to try a different method.
Checking the Windows Registry
The Windows Registry is a hierarchical database that stores low-level settings for the operating system and for applications. While it's possible to find a product key here, this method comes with a significant caution: it may not always display the actual key used for activation, especially on systems that were upgraded.
Warning: Incorrectly editing the Windows Registry can cause system instability. Proceed with caution and only view the information as instructed.
- Press Windows Key + R to open the Run dialog.
- Type ‘regedit’ and press Enter to open the Registry Editor.
- Navigate to the following key in the left-hand pane: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
- In the right-hand pane, look for the value named ‘BackupProductKeyDefault’. The 25-character key listed here might be your product key.
However, for many modern systems, especially those upgraded from a previous version of Windows, this may only show a generic product key used by Microsoft for installation. It is not the unique key that validates your license. Therefore, while useful to know, this method is less reliable than the CMD or PowerShell approaches.


