Get windows product key powershell

Get Windows Product Key Powershell, This is especially useful if you have a digital license or purchased Windows online without saving the key. Jun 20, 2025 · You can find the Windows product key using your computer's Command Prompt, PowerShell program, or within the Windows Registry. Jul 7, 2026 · Learn how to find a Windows 10 product key using CMD, PowerShell, third-party software or direct support from Microsoft. OA3xOriginalProductKey" Aug 13, 2024 · Can we get the windows product key using power shell? Powershell script to retrieve product keys and OS information from local or remote system/s. Jul 22, 2022 · 2-Paste this command and press enter: (Get-WmiObject -query ‘select * from SoftwareLicensingService’). The output of the above PowerShell scripts gets the activation key for the Windows OS. OA3xOriginalProductKey” Step 3: Press Enter. - mattcarras/Get-ProductKey Nov 24, 2024 · This guide explains how to use the Get-WindowsKey PowerShell script to retrieve the product key of a Windows operating system. Run the following PowerShell command to extract your product key from the Windows Management Instrumentation (WMI) database: Sep 23, 2021 · Learn how to use command prompt or PowerShell to display and check the Windows product key from an elevated administrator session. Get-CimInstance -ClassName SoftwareLicensingService | Select-Object -ExpandProperty OA3xOriginalProductKey This can also run against remote machines by adding the -ComputerName option. May 13, 2013 · There are some tools in the web that can read out Product Keys from a running Windows installation. Jun 10, 2026 · In this article, we’ll look at ways to extract the product key used to activate Windows on your device using only the built-in tools, without the need for any third-party programs. Click on the Windows PowerShell entry to open it. Run the Following Command: powershell " (Get-WmiObject -query 'select * from SoftwareLicensingService'). We would like to show you a description here but the site won’t allow us. Possible that product key is not stored in your Computer BIOS. PowerShell includes a command-line shell, object-oriented scripting language, and a set of tools for executing scripts/cmdlets and managing modules. Belarc Advisor indicates this is the definitive Windows Product Key: Sep 23, 2016 · I wrote update 3 :0) Surely there is only one windows product key per copy of windows, hence my confusion as to why I'm getting different answers!! The VBS script has been heralded, nay lauded as retrieving valid Windows Product keys in the past, so why should it have stopped working now? Get Windows product key via PowerShell. Aug 28, 2026 · Windows product key lookup made simple: use PowerShell, Settings, SLMGR, Registry and legacy CMD methods, plus understand digital licenses. OA3xOriginalProductKey" This command also retrieves the product key from your system's BIOS/UEFI firmware. See the commands and examples to find and verify the 25-character code that activates Windows. Jun 25, 2024 · Step 1: Type powershell in Windows Search. Nov 24, 2025 · A blank output after running wmic path SoftwareLicensingService get OA3xOriginalProductKey. . OA3xOriginalProductKey 3-PowerShell should retrieve the key and display it for you Another option is to use third-party software to do it like the NirSoft Product Key Scanner that you can see more information and download at this link. Aside from Powershell try this command using Run command with administrator access. JSON, CSV, XML, etc. Apr 4, 2023 · Open windows PowerShell as an administrator and type the below command and press enter - powershell " (Get-WmiObject -query 'select * from SoftwareLicensingService'). ps1 Get-WindowsKey By default will read local machine registry. Christian Habe… Jun 12, 2016 · Use Command Prompt or PowerShell to find Windows Product Key In this post, i will show you how to find the original Windows Product Key using Command Prompt or PowerShell, from BIOS or Registry. Jun 30, 2021 · Can I get and set the product key from bios in 1 line using cmd? Currently I just use a batch file that contains powershell. OA3xOriginalProductKey I can get it using this, but it returns more than just the product key field. I then purchased and applied a Windows 10 Pro license. Whether you’re reinstalling Windows, switching devices, or backing up your license, this guide shows you the easiest ways to find your product key using built-in tools. It works for Retail & OEM licenses too. Finally, Windows was updated to Windows 11 Pro during the normal Windows update cycles. If you want to search for keys that you've exported to another disk or USB, fire up regedit from the command line. Type PowerShell. g. Jul 28, 2025 · If you cannot locate it, you can retrieve it using PowerShell. ), REST APIs, and object models. exe) Set-ExecutionPolicy RemoteSigned Import-Module . PowerShell is a cross-platform (Windows, Linux, and macOS) automation tool and configuration framework optimized for dealing with structured data (e. The script works effectively on Windows Server 2025 but may not function as expected on earlier versions due to changes in how product keys are stored or accessed in the Windows registry. Step 2: In the Windows PowerShell window, type the following text: powershell “ (Get-WmiObject -query ‘select * from SoftwareLicensingService’). Then type this command wmic path SoftwareLicensingService get OA3xOriginalProductKey see if it still Open PowerShell as Administrator: Click on the Start menu. /key. This wikiHow article teaches you how to find your Windows product key so that you can activate Windows. May 23, 2026 · The fastest way to find your Windows product key is the Command Prompt command wmic path softwarelicensingservice get OA3xOriginalProductKey. Right-click on Windows PowerShell and select Run as administrator. Dec 22, 2024 · In this post, we will see how to find the original firmware-embeded Windows Product Key using Command Prompt or PowerShell, from BIOS or Registry. exe -c "(Get-WmiObject -query 'select * from SoftwareLicensingServic PowerShell Module to grab windows Product Keys From Powershell (start -> run -> powershell. How-to: Retrieve the Windows Product Key The Windows product key is a 25-character code used to activate Windows. Essential for IT pros. Sep 24, 2018 · Using some simple methods that involve PowerShell, Command Prompt, and Windows Registry, you can easily find the Windows product key. Aug 5, 2022 · Get-WmiObject -query 'select * from SoftwareLicensingService'). To find your Windows 10 or 11 product key, open PowerShell as administrator and run (Get-WmiObject -query 'select * from SoftwareLicensingService'). Jan 26, 2025 · PowerShell script to retrieve Windows product key. Aug 30, 2024 · The target system in question was originally shipped with an OEM version of Windows 10 Home. OA3xOriginalProductKey. GitHub Gist: instantly share code, notes, and snippets. There’s also a cool guy that wrote a PowerShell Script that can do the same. The Set-WindowsProductKey cmdlet sets the product key for the current Windows Edition in the specified image. Oct 4, 2026 · Learn how to use PowerShell commands or scripts to get your Windows product key from the registry or WMI. Jul 23, 2025 · You can get your Windows activation key using PowerShell or CMD with just a quick command, no extra tools or installs needed. Feb 4, 2023 · In the above PowerShell script, the Get-WmiObject cmdlet uses the SoftwareLicensingService class that stores the product key in the property OA3xOriginalProductKey. Find troubleshooting tips for common issues such as missing or incorrect keys. It will display the Product Key in the next line. On Windows 11, use the PowerShell equivalent: (Get-WmiObject -query 'select * from SoftwareLicensingService'). In most cases, Windows will activate automatically using a digital license and doesn’t require Learn how to find my Windows product key using CMD, PowerShell, or the Registry for Windows 11 & 10. o6ac1, 1kza, 7nvetya, 7wp, t9nxis, kpe, cgtz, cryq7, xnaj, xra1x,