Get windows product key powershell

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


Copyright© 2023 SLCC – Designed by SplitFire Graphics