massgrave.dev/hwid.md

321 lines
14 KiB
Markdown
Raw Normal View History

2023-03-16 19:09:16 +01:00
---
pagetitle: HWID Activation
---
# HWID Activation
2022-07-25 20:03:20 +02:00
------------------------------------------------------------------------
## Overview
2023-10-03 12:30:57 +02:00
**Note: HWID Activation is working again with a new method.**
2023-09-30 22:23:51 +02:00
------------------------------------------------------------------------
2023-01-11 12:19:43 +01:00
- How to use it? Please find the instructions [here](index.html#Download__How_to_use_it).
2022-07-25 20:03:20 +02:00
- This activation is supported for Windows 10/11 only.
2023-03-24 22:58:02 +01:00
- This activation does not store or modify/patch any files in your system.
2022-07-25 20:03:20 +02:00
- This activation is a permanent activation for your system Hardware.
- On a system, this activation can be created for all the supported editions, and all can be linked to Microsoft account without any issues.
2023-03-24 22:58:02 +01:00
- Once a system is activated, this activation cannot be removed because the license is stored in the Microsoft servers and not in the user's system. MS checks the hardware ID (HWID) and if a license is found in their database, the system will automatically activate. This is how official digital license works.
2022-07-25 20:03:20 +02:00
- Any significant changes in the Hardware (such as a motherboard) may deactivate the system. It is possible to reactivate a system that was deactivated because of significant hardware changes, IF your activation, was linked to an online Microsoft account.
2022-08-10 19:01:29 +02:00
- For activation to succeed, internet connectivity must be enabled. If you are trying to activate without these conditions being met, then the system will auto-activate later when the conditions are met.
2022-07-25 20:03:20 +02:00
- Auto activation scenario after the Windows re-install:
- The Internet is required. (Only at the time of activation)
- The system will auto-activate if Retail (Consumer) media was used for the installation.
2022-08-10 19:01:29 +02:00
- The system will NOT auto-activate if VL (Business) media was used for the installation. In this case, the user will have to insert that windows edition Retail/OEM key (find keys below on this page) to activate, if the user doesn't wish to activate again using this script.
2022-07-25 20:03:20 +02:00
------------------------------------------------------------------------
2023-10-03 12:30:57 +02:00
## HWID History
2022-07-25 20:03:20 +02:00
## How does it work?
2023-10-03 12:30:57 +02:00
#### HWID 1 (Now defunct) (Summer of 2018 - Sep 26 2023)
- In the official upgrade process from Windows 7 to Windows 10, Microsoft provided an HWID (digital license) activation for Windows 10 without any cost.
2022-07-25 20:03:20 +02:00
2023-03-16 19:09:16 +01:00
- In the background, the upgrade process runs a file named gatherosstate.exe (available in Windows 10/11 ISO) and it checks the license of current Windows if found activated, it generates a valid GenuineTicket.xml **ticket** which is sent to Microsoft and in return, MS authorizes a license.
- So if we just convince the gatherosstate.exe file that the conditions are met for ticket generation by fooling it, it will generate a valid ticket, which can be used to get the valid HWID (Digital license).
- How to convince the gatherosstate.exe?\
There are two methods for it.\
\
**1-** Place a [custom slc.dll](https://github.com/asdcorp/Integrated_Patcher_3) file beside gatherosstate.exe:\
2023-10-03 12:30:57 +02:00
gatherosstate.exe uses the system\'s `C:\Windows\System32\slc.dll` file to gather the system\'s info. If we place a custom slc.dll file beside gatherosstate.exe which can send the rubbish data to it, then it will simply accept it and generate a valid ticket.\
2023-03-16 19:09:16 +01:00
\
2023-10-03 12:30:57 +02:00
**2-** [Modify](https://github.com/asdcorp/GamersOsState) the gatherosstate.exe file itself so that it doesn\'t check the system\'s activation status and can directly create a valid ticket.
2022-07-25 20:03:20 +02:00
2023-10-03 12:30:57 +02:00
- You can find working of this old method here [MAS-Legacy-Methods](https://github.com/massgravel/MAS-Legacy-Methods).
2022-07-25 20:03:20 +02:00
2023-10-03 12:30:57 +02:00
- Microsoft [made](https://devicepartner.microsoft.com/en-us/communications/comm-windows-ends-installation-path-for-free-windows-7-8-upgrade) server side changes to to block the free upgrade and with that server side change, this method stopped working. To be clear, only new activation requests coming from new hardware was blocked, already established HWID are fine.
2022-07-25 20:03:20 +02:00
2023-10-03 12:30:57 +02:00
#### HWID 2 (Currently working) (03 Oct 2023 - Current)
2022-07-25 20:03:20 +02:00
2023-10-03 12:30:57 +02:00
- When Microsoft stopped the free upgrade, it started requiring Genuine valid key in ticket to authorize a digital license. In the new method we used only the Installation ID of a genuine, valid key. This gets accepted by the server and allows us to get a digital license for free. Check manual activation process in below section to know how to make working universal tickets.
2022-07-25 20:03:20 +02:00
2023-10-03 12:30:57 +02:00
------------------------------------------------------------------------
2022-07-25 20:03:20 +02:00
2022-11-07 21:30:36 +01:00
Now a question, can Microsoft block the new requests or revoke already established HWID license?
2022-07-25 20:03:20 +02:00
2023-10-03 12:30:57 +02:00
- Revoking the license would be too extreme and will face many complications and risk of voiding valid licenses. However they can block the new activation requests for new hardware coming from the methods mentioned here.
2022-07-25 20:03:20 +02:00
------------------------------------------------------------------------
2022-11-07 21:30:36 +01:00
## Supported Products
2022-07-25 20:03:20 +02:00
2023-09-25 15:45:25 +02:00
| Windows 10/11 | Generic Retail/OEM/MAK Key |
|:--------------------------------------|:--------------------------------|
| Education | `YNMGQ-8RYV3-4PGQ3-C8XTP-7CFBY` |
| Education N | `84NGF-MHBT6-FXBX8-QWJK7-DRR8H` |
| Enterprise | `XGVPP-NMH47-7TTHJ-W3FW7-8HV2C` |
| Enterprise N | `3V6Q6-NQXCX-V8YXR-9QCYV-QPFCT` |
| Enterprise LTSB 2015 | `FWN7H-PF93Q-4GGP8-M8RF3-MDWWW` |
| Enterprise LTSB 2016 | `NK96Y-D9CD8-W44CQ-R8YTK-DYJWX` |
| Enterprise LTSC 2019 | `43TBQ-NH92J-XKTM7-KT3KK-P39PB` |
| Enterprise N LTSB 2015 | `NTX6B-BRYC2-K6786-F6MVQ-M7V2X` |
| Enterprise N LTSB 2016 | `2DBW3-N2PJG-MVHW3-G7TDK-9HKR4` |
| Home | `YTMG3-N6DKC-DKB77-7M9GH-8HVX7` |
| Home N | `4CPRK-NM3K3-X6XXQ-RXX86-WXCHW` |
| Home China | `N2434-X9D7W-8PF6X-8DV9T-8TYMD` |
| Home Single Language | `BT79Q-G7N6G-PGBYW-4YWX6-6F4BT` |
| IoT Enterprise | `XQQYW-NFFMW-XJPBH-K8732-CKFFD` |
| IoT Enterprise LTSC 2021 | `QPM6N-7J2WJ-P88HH-P3YRH-YY74H` |
| IoT Enterprise LTSC 2024 | `CGK42-GYN6Y-VD22B-BX98W-J8JXD` |
| IoT Enterprise LTSC Subscription 2024 | `J7NJW-V6KBM-CC8RW-Y29Y4-HQ2MJ` |
| Pro | `VK7JG-NPHTM-C97JM-9MPGT-3V66T` |
| Pro N | `2B87N-8KFHP-DKV6R-Y2C8J-PKCKT` |
| Pro Education | `8PTT6-RNW4C-6V7J2-C2D3X-MHBPB` |
| Pro Education N | `GJTYN-HDMQY-FRR76-HVGC7-QPF8P` |
| Pro for Workstations | `DXG7C-N36C4-C4HTG-X4T3X-2YV77` |
| Pro N for Workstations | `WYPNQ-8C467-V2W6J-TX4WX-WT2RQ` |
| S | `V3WVW-N2PV2-CGWC3-34QGF-VMJ2C` |
| S N | `NH9J3-68WK7-6FB93-4K3DF-DJ4F6` |
| SE | `KY7PN-VR6RX-83W6Y-6DDYQ-T6R4W` |
| SE N | `K9VKN-3BGWV-Y624W-MCRMQ-BHDCD` |
| Team | `XKCNC-J26Q9-KFHD2-FKTHY-KD72Y` |
2022-07-25 20:03:20 +02:00
2022-11-07 21:30:36 +01:00
**Notes:**
2022-07-25 20:03:20 +02:00
2022-11-07 21:30:36 +01:00
- X86-X64 and ARM64 architecture systems are supported.
2022-07-25 20:03:20 +02:00
2022-11-07 21:30:36 +01:00
- Any Evaluation version of Windows (i.e. 'EVAL' LTSB/C) cannot be activated.
2022-07-25 20:03:20 +02:00
2022-11-07 21:30:36 +01:00
- IoTEnterpriseS (LTSC) 2021 key will be used to activate the unsupported EnterpriseS (LTSC) 2021 edition.
2022-07-25 20:03:20 +02:00
2022-11-07 21:30:36 +01:00
- Windows Server does not support HWID activation.
2022-07-25 20:03:20 +02:00
2023-03-16 19:09:16 +01:00
- ServerRdsh edition does not [officially](https://learn.microsoft.com/en-us/azure/virtual-desktop/windows-10-multisession-faq) support activation on non-azure systems.
2022-07-25 20:03:20 +02:00
------------------------------------------------------------------------
2023-03-22 22:04:58 +01:00
## How to remove HWID?
2023-03-24 22:58:02 +01:00
- You can not remove it, same as you can not remove official Windows digital (HWID) license. Once a system is activated, this activation cannot be removed because the license is stored in the Microsoft servers and not in the user's system. MS checks the hardware ID (HWID) and if a license is found in their database, the system will automatically activate.
2023-03-22 22:04:58 +01:00
------------------------------------------------------------------------
2022-07-25 20:03:20 +02:00
## Command line Switches
2023-01-11 12:19:43 +01:00
- Check [here](command_line_switches.html).
2022-07-25 20:03:20 +02:00
------------------------------------------------------------------------
2022-11-07 21:30:36 +01:00
## Manual Activation
2022-07-25 20:03:20 +02:00
2023-03-22 22:04:58 +01:00
This is for those who wants to perform manual activation. If you want a tool to do this for you then check [here](index.html).
We can divide the manual activation process into two parts.
### 1- From Ready-Made Ticket
- Make sure the Internet is enabled.
- Open Windows Powershell as administrator, and enter the following listed commands in the sequence in which they are given.
- Enter the Key, (Replace `<key>` with the key from the above list) with the following command
`slmgr /ipk <key>`
2023-10-03 12:30:57 +02:00
- Download Universal tickets from [here](https://pixeldrain.com/u/GbVLtMn6) and extract the downloaded file.
2023-03-22 22:04:58 +01:00
- Now enter below code in Powershell
`(Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\ProductOptions).OSProductPfn`
- This command will you show you some text like `Microsoft.Windows.48.X19-98841_8wekyb3d8bbwe`
- You need to find the exact same name ticket file in the folder which you have extracted earlier.
- Copy that ticket file and paste it in the below folder
`C:\ProgramData\Microsoft\Windows\ClipSVC\GenuineTicket`
- Now run below command in Powershell to apply the ticket
`clipup -v -o`
- Activate Windows with the following command
`slmgr /ato`
- Check Activation Status with the following command
`slmgr /xpr`
- Done.
------------------------------------------------------------------------
### 2- From Scratch
In this process we will perform activation from scratch. This is based on Universal ticket method. Here we will create identical tickets which are used in MAS HWID script and activate the system with it.
2022-07-25 20:03:20 +02:00
2022-11-07 21:30:36 +01:00
- Download file from the below official MS link and extract this .cab file.\
<https://download.microsoft.com/download/9/A/E/9AE69DD5-BA93-44E0-864E-180F5E700AB4/adk/Installers/14f4df8a2a7fc82a4f415cf6a341415d.cab>
2022-07-25 20:03:20 +02:00
2022-11-07 21:30:36 +01:00
- Find the file named `filf8377e82b29deadca67bc4858ed3fba9` and rename it as `gatherosstate.exe`
2022-07-25 20:03:20 +02:00
- Make a folder named `Files` in C drive, `C:\Files` and copy the `gatherosstate.exe` file in that folder.
2022-08-10 19:01:29 +02:00
- Make sure the Internet is enabled.
2022-07-25 20:03:20 +02:00
2022-08-10 19:01:29 +02:00
- Open Windows Powershell as administrator, and enter the following listed commands in the sequence in which they are given.
2022-07-25 20:03:20 +02:00
- Enter the Key, (Replace `<key>` with the key from the above list) with the following command
`slmgr /ipk <key>`
- Copy the below code all at once and enter it in PowerShell to modify the `gatherosstate.exe` file. This code to modify the file is based on [GamersOsState](https://github.com/asdcorp/GamersOsState).
2022-07-25 20:03:20 +02:00
<!-- -->
2023-05-04 12:37:14 +02:00
```
$bytes = [System.IO.File]::ReadAllBytes("C:\Files\gatherosstate.exe")
$bytes[320] = 0xf8
$bytes[321] = 0xfb
$bytes[322] = 0x05
$bytes[324] = 0x03
$bytes[13672] = 0x25
$bytes[13674] = 0x73
$bytes[13676] = 0x3b
$bytes[13678] = 0x00
$bytes[13680] = 0x00
$bytes[13682] = 0x00
$bytes[13684] = 0x00
$bytes[32748] = 0xe9
$bytes[32749] = 0x9e
$bytes[32750] = 0x00
$bytes[32751] = 0x00
$bytes[32752] = 0x00
$bytes[32894] = 0x8b
$bytes[32895] = 0x44
$bytes[32897] = 0x64
$bytes[32898] = 0x85
$bytes[32899] = 0xc0
$bytes[32900] = 0x0f
$bytes[32901] = 0x85
$bytes[32902] = 0x1c
$bytes[32903] = 0x02
$bytes[32904] = 0x00
$bytes[32906] = 0xe9
$bytes[32907] = 0x3c
$bytes[32908] = 0x01
$bytes[32909] = 0x00
$bytes[32910] = 0x00
$bytes[32911] = 0x85
$bytes[32912] = 0xdb
$bytes[32913] = 0x75
$bytes[32914] = 0xeb
$bytes[32915] = 0xe9
$bytes[32916] = 0x69
$bytes[32917] = 0xff
$bytes[32918] = 0xff
$bytes[32919] = 0xff
$bytes[33094] = 0xe9
$bytes[33095] = 0x80
$bytes[33096] = 0x00
$bytes[33097] = 0x00
$bytes[33098] = 0x00
$bytes[33449] = 0x64
$bytes[33576] = 0x8d
$bytes[33577] = 0x54
$bytes[33579] = 0x24
$bytes[33580] = 0xe9
$bytes[33581] = 0x55
$bytes[33582] = 0x01
$bytes[33583] = 0x00
$bytes[33584] = 0x00
$bytes[33978] = 0xc3
$bytes[34189] = 0x59
$bytes[34190] = 0xeb
$bytes[34191] = 0x28
$bytes[34238] = 0xe9
$bytes[34239] = 0x4f
$bytes[34240] = 0x00
$bytes[34241] = 0x00
$bytes[34242] = 0x00
$bytes[34346] = 0x24
$bytes[34376] = 0xeb
$bytes[34377] = 0x63
[System.IO.File]::WriteAllBytes("C:\Files\gatherosstatemodified.exe", $bytes)
```
2022-07-25 20:03:20 +02:00
2022-11-07 21:30:36 +01:00
- Now right click on the file `gatherosstatemodified.exe` and goto properties and set the compatibility to Windows XP SP3.\
2022-07-25 20:03:20 +02:00
- Now we need to generate the ticket, to do that, enter the below command.
<!-- -->
2023-05-04 12:37:14 +02:00
```
$value = (Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\ProductOptions).OSProductPfn
2022-07-25 20:03:20 +02:00
2023-10-03 12:30:57 +02:00
C:\Files\gatherosstatemodified.exe /c Pfn=$value`;PKeyIID=465145217131314304264339481117862266242033457260311819664735280
2023-05-04 12:37:14 +02:00
```
2022-07-25 20:03:20 +02:00
- A GenuineTicket.xml file should be created in the folder `C:\Files\` now let's apply it.
`clipup -v -o -altto C:\Files\`
2023-03-22 22:04:58 +01:00
- Activate Windows with the following command
2022-07-25 20:03:20 +02:00
`slmgr /ato`
2023-03-22 22:04:58 +01:00
- Check Activation Status with the following command
2022-07-25 20:03:20 +02:00
`slmgr /xpr`
- Done.
2022-11-07 21:30:36 +01:00
**Notes:**
- If the system is already activated then created ticket will be a Lockbox ticket and if not then it will be a Downlevel ticket.
- To make the exact ticket used in MAS HWID script, make sure system is already activated and fix the time with below Powershell command and then initiate the ticket generation process as per above mentioned steps.\
`Set-TimeZone -Id "UTC"; $date=[datetime]"2022/10/11 12:00";while($true){set-date $date; start-sleep -milliseconds 10}`
2022-11-07 21:30:36 +01:00
2022-07-25 20:03:20 +02:00
------------------------------------------------------------------------
## Setup Preactivate
2022-08-10 19:01:29 +02:00
- Check the Extract OEM option in the MAS `Extras` section if you want pre-activated Windows installation.
2022-07-25 20:03:20 +02:00
2023-01-11 12:19:43 +01:00
- Further, read [here](oem-folder.html).
2022-07-25 20:03:20 +02:00
------------------------------------------------------------------------
## Troubleshooting
2023-03-16 19:09:16 +01:00
- Check [here](troubleshoot.html).