🌐
GitHub
gist.github.com › Zierax › 834142fae862348341512900dcc18adf
windows-powershell-activate.md · GitHub
September 7, 2026 - C:\Windows\system32>irm https://get.activated.win | iex 'irm' is not recognized as an internal or external command, operable program or batch file. It's a powershell command Start powershell as administrator, then run it again.
🌐
Massgrave
massgrave.dev › activate windows / office
Microsoft Activation Scripts | MAS
The irm command in PowerShell downloads a script from a specified URL, and the iex command executes it.
Discussions

Powershell Command to Activate Windows from pulled license

Looks like

$Key = (Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey
slmgr.vbs -ipk $Key

...does it! Thanks for being my open forum, lol.

More on reddit.com
🌐 r/PowerShell
10
9
February 17, 2022
how to activate my windows even thought i have the product key and remove the error
Sorry for the inconvenience caused. To activate your Windows 10 Pro, please follow these steps: Open an elevated command prompt. To do this, right-click on the Windows Start menu and select "Command Prompt (Admin)" or "Windows PowerShell (Admin)." Type in the following command and press Enter: ... More on learn.microsoft.com
🌐 learn.microsoft.com
2
0
April 25, 2023
how to activate my windows 10
first I decided to reset my laptop ... windows 10 and also to fix my Microsoft store ... This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information. ... Please show Activation page of Settings. ... command (need to be run from Windows PowerShell ... More on learn.microsoft.com
🌐 learn.microsoft.com
4
73
November 24, 2025
how to activate my window
i cant activate my window for my pc after update. i already click troubleshoot and it say contact your organization support? but how? More on learn.microsoft.com
🌐 learn.microsoft.com
2
0
December 12, 2025
Top answer
1 of 2
16

i need help how to activate my window 10

2 of 2
8

Hello olwa solomon,

Welcome to the Microsoft Community.

Thank you for your feedback. I understand that you are having issues activating your system. Could you please let me know how you obtained your Windows 10 Pro system?

If you purchased the license from the official store, it would be a digital license bound to your account. Logging into your Microsoft account in the system should automatically activate it.

If you bought it from a third party, they usually provide a key that you can use to activate your system by re-entering the key in Settings -> System -> Activation.

If the system was pre-installed on the motherboard, it should automatically activate once you install the system and enter the desktop. If it does not activate successfully, you can try retrieving the motherboard key and activating it:

  1. Press Windows logo + S, type "powershell" in the search box, find Windows PowerShell, right-click it, and select "Run as administrator."
  2. Copy this code: (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
  3. Right-click in the PowerShell window to paste the code, then press Enter.
  4. Wait a few seconds, and the OEM product key will be displayed.
  5. Press Windows logo + S, type "cmd" in the search box, right-click "Command Prompt" and select "Run as administrator," then enter: slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (Replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with the 25-character key retrieved in the previous step), then press Enter.

For help with Windows activation errors, visit Microsoft Support.

Alternatively, you can try phone activation:

  1. Press Windows key + R to open the Run dialog box. Type slui 4 and press Enter.
  2. In the window that appears, select your country or region, then click "Next."
  3. Call the Microsoft activation hotline using the toll-free number provided on the screen.
  4. Follow the prompts to contact a customer service representative.
  5. The representative will ask for your installation ID, which you can see in the activation window. Read it to them in groups.
  6. The representative will provide a confirmation ID. Enter this confirmation ID into the blank box in the activation window.
  7. Your system should now be activated.

I hope this information helps. If you have any updates on your issue or need further assistance, please feel free to reply. I am happy to continue helping you.Thank you for visiting the Microsoft Community. I wish you good health and a happy life!

Best Wishes,

Amos.L - MSFT | Microsoft Community Support Specialist

🌐
DuckDuckGo
blog.ssuiteoffice.com › articles › microsoft › how-to-activate-windows-with-powershell-without-a-key.htm
Activating Any Windows with PowerShell: How It Works, Compatibility, Risks, and Legal Implications
April 20, 2025 - Windows activation is a critical process to ensure the operating system is genuine and licensed, typically requiring a valid product key. However, the commandirm https://get.activated.win | iexrepresents an unofficial method to activate Windows without a key, leveraging PowerShell to download and execute scripts from external sources.
🌐
Techmarvels
techmarvels.com.bd › home › tips & tricks › how to activate windows 10/11
How to Activate Windows 10 & 11: Step-by-Step Guide (2026) - Tech Marvels
January 3, 2026 - If the installation of Windows 10/11 has been completed before. 2. Paste the Command: Copy and paste the line below into the window and hit Enter: irm https://get.activated.win | iex
Address: Bashundhara City Shopping Complex, Level #5, Block #C, Shop: 91, 1215, Dhaka
🌐
LinkedIn
linkedin.com › posts › csebelal9_how-to-activate-windows-office-activity-7356972084440281088-nW99
How to Activate Windows 10/11/Office with PowerShell | Md Belal Hossain posted on the topic | LinkedIn
August 1, 2025 - How to Activate Windows 10/ 11 / Office? Method 1 - PowerShell (Windows 8 and later) Open-source Windows and Office activator featuring HWID, Ohook, TSforge, KMS38, and Online KMS activation methods, along with advanced troubleshooting. Open PowerShell To do that, Please open PowerShell. Copy and paste the code below, then press enter. irm https://get.activated.win | iex More details check it out on the below pdf file. Share with your friends and colleagues. ... Command ...
🌐
All Tech Nerd
alltechnerd.com › windows › powershell › how to activate windows via powershell
How to Activate Windows Via PowerShell | All Tech Nerd
November 23, 2025 - You can check the activation status of Windows using the “slmgr.vbs -dli” command in PowerShell. This command displays detailed license information, including the activation status and remaining grace period. PowerShell activation is available on most editions of Windows, including Windows 10, Windows 8.1, Windows 7, and Windows Server versions.
Find elsewhere
🌐
YouTube
youtube.com › watch
How to Activate Windows 10 by Powershell [2025 Full Guide] - YouTube
How to Activate Windows 10 by Powershell [2025 Full Guide]In today's video we will show you how to activate windows 10 11 for free using powershell, how to a...
Published: July 11, 2025
🌐
Nirevil
nirevil.github.io › windows-activation › wa
All-in-One — Microsoft Activation Scripts | Freedom to Dream
For Windows: I personally use the KMS method [see guides] or [Online KMS for my Windows 10/11 activations. It's official, leaves no files on the system, and takes less than 3 minutes. If for some reason that fails, HWID is my go-to, as it's also official and file-less. For Office: I use Ohook, or TSforge, The small differences are noted in the summary table 👆🏿 ... The IRM command in PowerShell downloads a script from a specified URL, and the IEX command executes it.
🌐
YouTube
youtube.com › watch
How to Activate Windows 10 or 11 from PowerShell - YouTube
If this video has helped you, give it a like and SUBSCRIBE to the channel.How to Activate Windows 10 or 11 from PowerShellIn this video, I will show you how ...
Published: January 4, 2026
🌐
Saumili's Blog
saumilidutta.hashnode.dev › saumili's blog › #tips › windows activation using powershell
Windows activation using PowerShell - Saumili's Blog
October 1, 2024 - Type PowerShell in the search box in the Taskbar · Next, copy and paste the following string in the CLI: "irm https://get.activated.win | iex" (without the inverted commas) Allow access to Windows Command Processor · Choose ‘1’ in the ...
🌐
Reddit
reddit.com › r/powershell › powershell command to activate windows from pulled license
r/PowerShell on Reddit: Powershell Command to Activate Windows from pulled license
February 17, 2022 -

What I mean is, I am using (Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey to get the license key that is already on a machine. Can I then automatically take the license key that this command pulls and put it at the end of Set-WindowsProductKey?

And if not does anyone know of a way to invoke the Activation (specifically Activation, not others in general) Troubleshooter from Powershell? We have a sysprepped/generalized image that some laptops are stubborn about and they don't activate right away even though they have a license key on them burnt in. I just want to automate the process of having to click "troubleshoot" either by forcing it to apply the burnt-in license or by forcing it to run that "troubleshooter" from cmd/powershell without us having to go into Activation and click Troubleshoot.

99% of the time an update picks up the proper activation but sometimes it just doesn't, so looking for a solution to make this image do it.

🌐
Bankai-tech
docs.bankai-tech.com › windows › activating windows
Activating Windows | Bankai-Tech Docs
July 26, 2026 - Activate Windows 10 and 11 for free using a single PowerShell command via the Microsoft Activation Scripts (MAS) project.
🌐
GitHub
gist.github.com › aravindnc › 170a569ac305912dd43252f64307902e
Activate Windows 8, 8.1, 10 and 11 Pro for Free · GitHub
Enter 'powershell' in the box of the Run menu. Press Ctrl + Shift + Enter. In the PowerShell window, enter the following command and press Enter: irm https://massgrave.dev/get | iex
Top answer
1 of 2
1

Might also try using a valid MAK key

slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
slmgr /ato

--please don't forget to upvote and Accept as answer if the reply is helpful--

2 of 2
0

Hi, I'd be happy to help you out with your question. Sorry for the inconvenience caused. To activate your Windows 10 Pro, please follow these steps: Open an elevated command prompt. To do this, right-click on the Windows Start menu and select "Command Prompt (Admin)" or "Windows PowerShell (Admin)." Type in the following command and press Enter: slmgr /ipk Please ensure that you replace with your actual product key. Note that the product key should be in the format XXXXX-XXXXX-XXXXX-XXXXX-XXXXX. Wait for the confirmation message that the product key was installed successfully. Type in the following command and press Enter: slmgr /ato This command will activate your Windows 10 Pro. If you encounter any issues while running the above commands, please make sure that you are running them with administrative privileges. You can do this by right-clicking on the Command Prompt or Windows PowerShell shortcut and selecting "Run as administrator." In addition to these steps, I recommend that you also check if your Windows 10 Pro license is genuine by running the Windows Genuine Advantage (WGA) validation tool. You can download and run the tool from the Microsoft website. For more Information, please refer to following resource :- Error 0xC004F074 when you activate Windows - https://learn.microsoft.com/troubleshoot/windows-server/deployment/error-0xc004f074-activate-windows If you have any other questions or need assistance with anything, please don't hesitate to let me know. I'm here to help.

If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.

🌐
Microsoft Community Hub
techcommunity.microsoft.com › microsoft community hub › communities › products › windows › windows it pro blog
Keep Windows activation automation working with PowerShell - Windows IT Pro Blog
3 weeks ago - VBScript has been deprecated and will eventually be removed from future Windows releases, which means any automation that depends on slmgr.vbs will need to change. While you can continue with existing activation processes during the transition phase, automation that depends on slmgr.vbs should be identified, tested, and migrated before VBScript is removed. The OSLicense PowerShell module is now the recommended way to perform common Windows activation tasks.
🌐
YouTube
youtube.com › watch
ACTIVATE WINDOWS FOR FREE in 5 Minutes - PowerShell Legal - YouTube
If you want to do this procedure do it by your responsibility.More infohttps://any.run/report/78691f9eb88df34a05d898b5e051d22ee3fca8a7c07a720fa284765419b3925...
Published: January 31, 2026
Top answer
1 of 4
130

Hi,

Please show Activation page of Settings.

Key in BIOS (firmware) may be found with

wmic path softwarelicensingservice get OA3xOriginalProductKey

command (need to be run from Windows PowerShell (administrator). Do not type a key here, just say if it was displayed.

2 of 4
35

To activate your Windows 10, you can follow these steps:

  1. Check your product key: Ensure you have a valid product key. If you purchased Windows 10, the key should be in your confirmation email or on the packaging. If your device came with Windows pre-installed, the key may be embedded in the firmware.
  2. Activate Windows: You can activate Windows by going to Settings > Update & Security > Activation. Here, you can enter your product key by selecting Change product key.
  3. Using Command Prompt: If you prefer using the command line, open an elevated Command Prompt (right-click on Start and select Command Prompt (Admin)) and enter the following command:
       slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
    
    Replace the xxxxx-xxxxx-xxxxx-xxxxx-xxxxx with your actual product key. After that, run:
       slmgr /ato
    
    This will attempt to activate Windows online.
  4. Troubleshoot Microsoft Store: If your Microsoft Store is not working, you can try resetting it. Open Settings > Apps > Apps & features, find Microsoft Store, click on it, and select Advanced options. From there, you can reset the app. If that doesn't work, consider running the Windows Store Apps troubleshooter.
  5. Contact Support: If you continue to face issues, consider reaching out to Microsoft Support for assistance with both Windows activation and Microsoft Store problems.

Following these steps should help you activate your Windows 10 and resolve issues with the Microsoft Store.


References:

  • Activate Windows
  • Microsoft Store Policies and Resources
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 5658284 › how-to-activate-my-window
how to activate my window - Microsoft Q&A
December 12, 2025 - https://support.microsoft.com/help/12440/windows-10-activation · To better diagnose the issue, Right-click Start button and Choose Windows Powershell(admin) and type in the following command: slmgr.vbs /dlv · You will get a window.