Find Your Product Key Using Command Prompt Or PowerShell To get your key through Command Prompt, go to Search and type "prompt". When the Command Prompt window opens, type this line: "wmic path softwarelicensingservice get OA3xOriginalProductKey" and press Enter. You should see your product key below.