Activating Windows 11 with no product key
A product key is only one of several ways Windows can prove it is licensed. The other is a digital license — a record on Microsoft's activation servers that says this specific hardware is entitled to this edition. HWID activation in Microsoft Activation Scripts (MAS) creates exactly that record, which is why no key is ever typed in.
Before you start
- Windows 10 or Windows 11, any edition (Home, Pro, Education, Enterprise)
- Administrator access
- An internet connection for the activation step
- Windows Defender real-time protection temporarily paused, or an exclusion added
The antivirus warning is a false positive. Activation scripts read and write licensing data, which is exactly the behaviour heuristics are tuned to catch. The project is open source, so the code can be inspected line by line.
Method 1 — the one-line command (fastest)
- Right-click the Start button and choose Terminal (Admin) or Windows PowerShell (Admin). Do not use CMD.
- Paste and press Enter:
irm https://get.activated.win | iex
- A blue menu appears. Press 1 for HWID.
- Wait for the confirmation and reboot.
Type the domain carefully or copy it — short one-liner domains are a known typo-squatting target.
Method 2 — the offline archive
Download the MAS archive, extract it anywhere (the Desktop is fine), open MAS\All-In-One-Version-KL\, then right-click MAS_AIO.cmd → Run as administrator. The same menu appears. There is deliberately no .exe in the archive — an executable would be flagged instantly.
Confirming activation
Run in any terminal:
slmgr /xpr
A permanent digital license reports "The machine is permanently activated." You can also check Settings → System → Activation, which should read "Windows is activated with a digital license linked to your Microsoft account" or simply "Windows is activated with a digital license".
Why HWID survives a reinstall
The license lives on Microsoft's servers keyed to your hardware hash, not in a file on your disk. Format the drive, install Windows 11 fresh on the same motherboard, connect to the internet, and activation happens automatically within a few minutes. Replacing the motherboard invalidates the hash — link the license to a Microsoft account first if you plan a hardware swap.
If it does not work
| Symptom | Cause | Fix |
|---|---|---|
0xC004F074 | Licensing service can't reach the server | Check date/time, DNS, and that sppsvc is running |
0x80070005 | Not elevated | Re-run the terminal as Administrator |
| Script closes instantly | Defender deleted files | Add an exclusion, re-extract, retry |
ConstrainedLanguage error | PowerShell lockdown policy | Remove the __PSLockdownPolicy value from the Environment registry key |
| Edition unsupported | HWID has no entitlement path | Use TSforge or KMS38 instead |
More codes and their fixes are in the error decoder, and the full service-repair walkthrough is on the troubleshooting page.
For Office
HWID only covers Windows. To activate Microsoft Office permanently, run the same script and pick Ohook — see the Office activation guide.