Query the Windows product key on a HUAWEI computer

Applicable products: PC,Desktop
Applicable system: Windows 10, Windows 11
Applicable products:
Applicable system:
Results of query below
Unable to find results for the query, please try different key words
zoom in pic
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
    1. 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.

    2. 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.

  • Method 2: Using Command Prompt (not applicable to Windows 24H2 or later system versions)
    1. Enter "cmd" in the search box on the taskbar and open Command Prompt.

    2. 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

Helpful or not?
Thanks for your feedback.