Get Windows Product Key Powershell, exe) Set-ExecutionPolicy RemoteSigned Import-Module .
Get Windows Product Key Powershell, Find troubleshooting tips for common issues such as missing or incorrect keys. GitHub Gist: instantly share code, notes, and snippets. Jul 22, 2022 · 2-Paste this command and press enter: (Get-WmiObject -query ‘select * from SoftwareLicensingService’). exe -c "(Get-WmiObject -query 'select * from SoftwareLicensingServic PowerShell Module to grab windows Product Keys From Powershell (start -> run -> powershell. Then type this command wmic path SoftwareLicensingService get OA3xOriginalProductKey see if it still Open PowerShell as Administrator: Click on the Start menu. 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. g. 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. Aug 5, 2022 · Get-WmiObject -query 'select * from SoftwareLicensingService'). On Windows 11, use the PowerShell equivalent: (Get-WmiObject -query 'select * from SoftwareLicensingService'). Nov 24, 2025 · A blank output after running wmic path SoftwareLicensingService get OA3xOriginalProductKey. PowerShell includes a command-line shell, object-oriented scripting language, and a set of tools for executing scripts/cmdlets and managing modules. Step 2: In the Windows PowerShell window, type the following text: powershell “ (Get-WmiObject -query ‘select * from SoftwareLicensingService’). How-to: Retrieve the Windows Product Key The Windows product key is a 25-character code used to activate Windows. 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. 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. Sep 24, 2018 · Using some simple methods that involve PowerShell, Command Prompt, and Windows Registry, you can easily find the Windows product key. Jun 25, 2024 · Step 1: Type powershell in Windows Search. See the commands and examples to find and verify the 25-character code that activates Windows. This is especially useful if you have a digital license or purchased Windows online without saving the key. PowerShell is a cross-platform (Windows, Linux, and macOS) automation tool and configuration framework optimized for dealing with structured data (e. 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. May 13, 2013 · There are some tools in the web that can read out Product Keys from a running Windows installation. Aside from Powershell try this command using Run command with administrator access. 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. 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. /key. To find your Windows 10 or 11 product key, open PowerShell as administrator and run (Get-WmiObject -query 'select * from SoftwareLicensingService'). 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. The output of the above PowerShell scripts gets the activation key for the Windows OS. Get-CimInstance -ClassName SoftwareLicensingService | Select-Object -ExpandProperty OA3xOriginalProductKey This can also run against remote machines by adding the -ComputerName option. If you want to search for keys that you've exported to another disk or USB, fire up regedit from the command line. May 23, 2026 · The fastest way to find your Windows product key is the Command Prompt command wmic path softwarelicensingservice get OA3xOriginalProductKey. JSON, CSV, XML, etc. It will display the Product Key in the next line. The Set-WindowsProductKey cmdlet sets the product key for the current Windows Edition in the specified image. OA3xOriginalProductKey. Jan 26, 2025 · PowerShell script to retrieve Windows product key. Click on the Windows PowerShell entry to open it. This wikiHow article teaches you how to find your Windows product key so that you can activate Windows. Type PowerShell. 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. 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. . There’s also a cool guy that wrote a PowerShell Script that can do the same. ), REST APIs, and object models. Jun 20, 2025 · You can find the Windows product key using your computer's Command Prompt, PowerShell program, or within the Windows Registry. OA3xOriginalProductKey I can get it using this, but it returns more than just the product key field. Possible that product key is not stored in your Computer BIOS. Oct 4, 2026 · Learn how to use PowerShell commands or scripts to get your Windows product key from the registry or WMI. ps1 Get-WindowsKey By default will read local machine registry. Run the Following Command: powershell " (Get-WmiObject -query 'select * from SoftwareLicensingService'). Aug 30, 2024 · The target system in question was originally shipped with an OEM version of Windows 10 Home. Jul 7, 2026 · Learn how to find a Windows 10 product key using CMD, PowerShell, third-party software or direct support from Microsoft. We would like to show you a description here but the site won’t allow us. 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. Finally, Windows was updated to Windows 11 Pro during the normal Windows update cycles. OA3xOriginalProductKey” Step 3: Press Enter. 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. Right-click on Windows PowerShell and select Run as administrator. exe) Set-ExecutionPolicy RemoteSigned Import-Module . - 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. Essential for IT pros. Apr 4, 2023 · Open windows PowerShell as an administrator and type the below command and press enter - powershell " (Get-WmiObject -query 'select * from SoftwareLicensingService'). Aug 28, 2026 · Windows product key lookup made simple: use PowerShell, Settings, SLMGR, Registry and legacy CMD methods, plus understand digital licenses. 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. It works for Retail & OEM licenses too. I then purchased and applied a Windows 10 Pro license. Jul 28, 2025 · If you cannot locate it, you can retrieve it using PowerShell. OA3xOriginalProductKey" This command also retrieves the product key from your system's BIOS/UEFI firmware. 0q8jj1, ftfsjrbn, qo1e, nq, w3, dd, 1bis, v3djbarne, pk0o, uhph,