View product key

Describes two ways to view the product key associated with your copy of Windows.

To view your Windows product key, open an elevated Command prompt and then run:

wmic path softwarelicensingservice get OA3xOriginalProductKey

Note that the final value starts with a leading capital “O” (as in Oscar, not zero).

The command is case-sensitive.

If this doesn’t return a key, you’re likely using an OEM digital license.

In that case, trying using RedEdit to locate the following key:

        HKEY_LOCAL_MACHINE\
           Microsoft\
              Windows NT\
                 CurrentVersion\
                    SoftwareProtectionPlatform

The value of the BackupProductKey setting contains your product key.

Vital statistics

  • 7 April 2025: First post for this site