Skip to content

Instantly share code, notes, and snippets.

@sumonst21
Created October 28, 2024 19:15
Show Gist options
  • Save sumonst21/7428b4fdc13ce3e54dd34a455636d7d5 to your computer and use it in GitHub Desktop.
Save sumonst21/7428b4fdc13ce3e54dd34a455636d7d5 to your computer and use it in GitHub Desktop.
How to Retrieve Your Firmware-Embedded Windows Activation Key Using PowerShell

Steps to Retrieve the Firmware-Embedded Windows Activation Key

  1. Open an Elevated PowerShell Prompt

    • Search for "PowerShell" in the Start menu.
    • Right-click on "Windows PowerShell" and select Run as Administrator.
  2. Run the Command

    • In the elevated PowerShell window, enter:
      (Get-CimInstance -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
  3. View the Output

    • If the device has a firmware-embedded activation key, it will display in the output:
      C:\Users\sumonhome_iv>powershell
      Windows PowerShell
      Copyright (C) Microsoft Corporation. All rights reserved.
      
      Try the new cross-platform PowerShell https://aka.ms/pscore6
      
      PS ...>(Get-CimInstance -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
      XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
    • If blank, there is no embedded key. Most modern OEM devices for Windows have this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment