ActivationWs is a customizable solution that allows you to automate the Multiple Activation Key (MAK)1 activation process for various Microsoft products such as Windows, Office, and Extended Security Update (ESU) add-ons.
- Automates MAK deployment for organizations of any size
- Pull-based activation: Devices request activation, reducing manual steps and obstacles
- 🎉 Centralized storage of activation data: Monitor the status of activations and support non-persistent environments like VDI or lab setups, where machines are frequently reimaged or reset
- Customizable and privacy-friendly: Full source code is available for review and modification
- Easy to implement: Integrates with deployment tools like ConfigMgr or custom solutions
ActivationWs is made up of two components:
- ASP.NET Core web app
- PowerShell script (
Activate-Product.ps1)
The following illustration shows a simplified version of the MAK deployment and product activation process:
- The PowerShell script is deployed to your devices using ConfigMgr or a deployment tool of your choice
- The script installs the MAK and queries the respective Installation- and Product IDs. It then sends the data to the ActivationWs web app. Communication between the device and the ActivationWs web app takes place over a port of your choice, e.g. 80/443
- Installation- and Product IDs are transmitted to the Microsoft Activation Service
- A Confirmation ID is subsequently returned to the ActivationWs web app
- ActivationWs web app returns the Confirmation ID to the device. The script deposits the Confirmation ID and concludes the product activation
- The ActivationWs web app needs access to the Microsoft Activation Service (
https://activation.sls.microsoft.com). A proxy server can be specified in the appsettings.json file, where necessary - To host the ActivationWs web app on IIS, install the ASP.NET Core Hosting Bundle
Activate-Product.ps1requires Windows PowerShell 3.0 or later and needs to be executed with administrative rights
This section highlights some of the most frequent scenarios and guides you through the initial setup.
Note
For the deployment of ESU MAKs, please ensure that these prerequisites are met on your devices:
- Build the solution (Visual Studio 2022 or later)
- Deploy the ActivationWs web app to a web server, e.g. IIS
Deploy Activate-Product.ps1 to your devices. The following animation demonstrates the MAK installation and activation of an ESU product:
- Open the ActivationWs home page
- Enter the Hostname, Installation- and Extended Product ID to retrieve the Confirmation ID
- Activate the product by
slmgr.vbs /atp <Confirmation ID> <Activation ID>
Tip
The following section contains answers to frequently asked questions. Please feel free to file an issue or contact me should you have any question or need support.
ActivationWs web service requires access to the URL listed in the Requirements section.
| Error | How to fix it |
|---|---|
| The product key is invalid | - Check your MAK - For the deployment of ESU MAKs only: ensure that all of the prerequisites are installed on your ESU eligible device If it fails even though you followed these steps, please take a look at the following support article: How to rebuild the Tokens.dat file when you troubleshoot Windows activation issues |
| The Installation ID (IID) and the Confirmation ID (CID) do not match | For the deployment of ESU MAKs only: ensure that all of the prerequisites are installed on your ESU eligible device |
| (500) Internal Server Error | This is a "server-side" error, meaning that the ActivationWs web service couldn't acquire the Confirmation ID. Reasons include: - The ActivationWs web service couldn't connect to the required URL |
Please request an increase to MAK activation limits here.
You don’t have to be a developer to contribute to the project!
There are other ways to join the project including:
- Writing documentation
- Creating tutorials
- Bug reporting and triaging (here)
- Feature testing
Footnotes
-
MAKs are interchangeably referred to as product keys, or license keys ↩



