Skip to main content

Retrieve License Key from BIOS

Using Command Prompt

  1. Open a Command Prompt as an Administrator.
  2. Type in the following command: wmic path softwarelicensingservice get OA3xOriginalProductKey
  3. Press Enter.
  4. The command will output any License Key that is imprinted in the BIOS.

Using a Batch Script

  1. Open Notepad or some other text editor.
  2. Copy the following code a paste it into your text editor:
    1. @echo off
      SET FILENAME=OEMKEY-%COMPUTERNAME%.txt
      wmic path softwarelicensingservice get OA3xOriginalProductKey > %FILENAME%
  3. Name the file Get-OEM-License.bat and save the file to the Desktop.
  4. On the Desktop, hold the Shift-Key and right-click the Get-OEM-License.bat then click Run As Administrator.
  5. If prompted, enter your administrator credentials.
  6. The script will create a text file on the desktop containing the license key.