Query the Windows product key on a HUAWEI computer
Query the Windows product key on a HUAWEI computer |
A product key is a 25-character code used to activate Windows. To activate the corresponding Windows version, enter the product key in the system settings. You can check the product key using the following methods:
- If a computer cannot boot into the system, it is impossible to view the product key.
- The input command is case insensitive. However, pay attention to digits and spaces. It is recommended that you copy and paste the command to the window.
- If the query result is empty after pressing the Enter key, it indicates that the computer does not have a product key.
- If your device did not come with pre-installed Windows Home edition or if it was explicitly stated during purchase that the device does not include a Windows activation key, these instructions do not apply. To obtain the product key, please contact the vendor or Microsoft customer service for further assistance.
Method 1: Using Windows PowerShell
Method 2: Using Command Prompt
- Method 1: Using Windows PowerShell
- Connect your computer to the Internet. Right-click the Windows icon
on the desktop and select Administrator (or Windows PowerShell (Admin)) from the shortcut menu.
- Enter the command (Get-WmiObject –query 'select * from SoftwareLicensingService').OA3xOriginalProductKey and press Enter. The text displayed in the format of "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" is the product key.
- Connect your computer to the Internet. Right-click the Windows icon
- Method 2: Using Command Prompt (not applicable to Windows 24H2 or later system versions)
- Enter "cmd" in the search box on the taskbar and open Command Prompt.
- Enter the command wmic path SoftwareLicensingService get OA3xOriginalProductKey (case-sensitive) and press Enter. The text displayed in the format of "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" is the product key. (Not applicable to 24H2 and later system versions)
If your device did not come with pre-installed Windows Home edition or if it was explicitly stated during purchase that the device does not include a Windows activation key, these instructions do not apply. To obtain the product key, please contact the vendor or Microsoft customer service for further assistance.
To learn more:
Activating pre-installed Windows system on a HUAWEI computer