Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm doing a hard drive upgrade and it might ask me for the product key again. How can I find it?

share|improve this question
up vote 19 down vote accepted

Either the sticker that came with your machine and/or on the media case.

You can also try Nirsoft ProduKey for a software way.

share|improve this answer
Windows 7 comes on DVDs. CDs as a distribution means for Windows Operating Systems are a thing from the past. :) – Molly7244 Dec 26 '09 at 17:58
Oh come on!... But true I suppose! – William Hilsum Dec 26 '09 at 18:17
Magic Jellybean FTW! – atroon Dec 26 '09 at 21:22
Magic Jelly Bean is awesome. It instantly shows me the product key for Windows 7 as well as the other Microsoft products installed on my system. – Phenom Dec 27 '09 at 1:21
Just watch out for its installer trying to install some crapware browser toolbar and mess with your default homepage. – Piku May 31 '13 at 14:02

Product Key Finder is a free tool that will display the installed Windows Product Key and other important Windows system information. Product Key Finder works with the following Windows operating systems (2000, 2003, XP, Vista, 2008, 7), 32-bit and 64-bit.

Find alternative methods here:

How To Find the Windows 7 Product Key Code

You may also want to backup your Windows activation files:

How to Backup and Restore Windows 7 and Server 2008 R2 Activation Status

share|improve this answer
ottsolutions' "Product Key Finder" is nice because it doesn't need to be installed, and doesn't install any crapware either. – mivk Jan 27 '14 at 12:46

Belarc Advisor.

Download, install, run it, then it opens a page in your web browser displaying all kinds of facts and statistics about your PC...near the bottom, it has all the product keys, etc for all the install software, and, of course, the operating system...Hope that helps!

share|improve this answer

This short PowerShell script by Winaero can be used.

See the blog post for step-by-step instuctions if you're not familiar with PS.

function Get-WindowsKey {
    ## function to retrieve the Windows Product Key from any PC
    ## by Jakob Bindslet (
    param ($targets = ".")
    $hklm = 2147483650
    $regPath = "Software\Microsoft\Windows NT\CurrentVersion"
    $regValue = "DigitalProductId"
    Foreach ($target in $targets) {
        $productKey = $null
        $win32os = $null
        $wmi = [WMIClass]"\\$target\root\default:stdRegProv"
        $data = $wmi.GetBinaryValue($hklm,$regPath,$regValue)
        $binArray = ($data.uValue)[52..66]
        $charsArray = "B","C","D","F","G","H","J","K","M","P","Q","R","T","V","W","X","Y","2","3","4","6","7","8","9"
        ## decrypt base24 encoded binary data
        For ($i = 24; $i -ge 0; $i--) {
            $k = 0
            For ($j = 14; $j -ge 0; $j--) {
                $k = $k * 256 -bxor $binArray[$j]
                $binArray[$j] = [math]::truncate($k / 24)
                $k = $k % 24
            $productKey = $charsArray[$k] + $productKey
            If (($i % 5 -eq 0) -and ($i -ne 0)) {
                $productKey = "-" + $productKey
        $win32os = Get-WmiObject Win32_OperatingSystem -computer $target
        $obj = New-Object Object
        $obj | Add-Member Noteproperty Computer -value $target
        $obj | Add-Member Noteproperty Caption -value $win32os.Caption
        $obj | Add-Member Noteproperty CSDVersion -value $win32os.CSDVersion
        $obj | Add-Member Noteproperty OSArch -value $win32os.OSArchitecture
        $obj | Add-Member Noteproperty BuildNumber -value $win32os.BuildNumber
        $obj | Add-Member Noteproperty RegisteredTo -value $win32os.RegisteredUser
        $obj | Add-Member Noteproperty ProductID -value $win32os.SerialNumber
        $obj | Add-Member Noteproperty ProductKey -value $productkey
share|improve this answer

You must log in to answer this question.

protected by slhck Aug 27 '13 at 10:39

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .