Giter VIP home page Giter VIP logo

activationws's Introduction

Overview

Welcome to the ActivationWs GitHub repository!

ActivationWs is a customizable solution that allows you to automate the Multiple Activation Key (MAK) activation process for Windows, Office, and other Microsoft products (eg. Extended Security Update (ESU)).

Requirements | Installation and Usage | FAQ | Contribution | Code of Conduct | Disclaimer

How does ActivationWs work and how does it benefit you?

ActivationWs includes an ASP.NET web service and a PowerShell script to install and activate the MAK. The following graphic shows a simplified version of the ESU license deployment and activation process (the deployment and activation process also applies to all other products):

activation-process

  1. The PowerShell script Activate-Product.ps1 is deployed to your devices (eg. using ConfigMgr or another solution of your choice)
  2. The script installs the MAK, queries the Installation- and Product ID. It then sends a SOAP request to the ActivationWs web service (the ActivationWs web service is installed onto a host in your internal network. Communication takes place over a port of your choice, eg. 80/443)
  3. Installation- and Product IDs are sent to the Microsoft BatchActivation Service
  4. Confirmation ID is returned to the ActivationWs web service, which will then return the Confirmation ID to the device
  5. The script deposits the Confirmation ID and concludes the activation

Benefits:

  • Helps organizations of any size with the deployment of MAKs
  • Provides a pull-based activation solution and reduces obstacles faced during the product key activation
  • Easy to implement, time-saving, allows you to ensure business goals are realized, manages risks and delivers business value
  • Customizable and addresses privacy concerns, given the fact that the source code is available to the public

Back to Overview

Requirements

  • ActivationWs web service runs on IIS and requires the .NET Framework 4.6 and ASP.NET modules
  • The web service requires access to the Microsoft BatchActivation Service (https://activation.sls.microsoft.com). A proxy server can be specified in the web.config file, where necessary
  • Activate-Product.ps1 requires Windows PowerShell v2.0 or later and needs to be executed with administrative rights

Back to Overview

Installation and Usage

The latest version of this solution can be downloaded from the ActivationWs GitHub releases page. Click on Assets to show the files available in the release.

  1. Deploy the ActivationWs web service to IIS
  2. For the deployment of ESU licenses only: please ensure that all of the prerequisites are installed on your ESU eligible devices
  3. Deploy the PowerShell script Activate-Product.ps1 to all relevant devices to install and activate the license

activate-product

Manual Confirmation ID retrieval

ActivationWs also supports you in the activation process of air-gapped devices.

  1. Open the ActivationWs site
  2. Enter the Installation- and Product ID to retrieve the corresponding Confirmation ID
  3. Activate the product by slmgr.vbs /atp <Confirmation ID> <Activation ID>

manual-cid-retrieval

Back to Overview

FAQ

The following section contains answers to frequently asked questions. Please feel free to contact me should you have any question or need support.

To which external addresses does ActivationWs web service specifically need access to?

ActivationWs web service requires access to the URL listed in the requirement section.

After successfully deploying the licenses using ActivationWs, how can I verify the deployment of the extended security updates?

Please take a look at this blog article, which outlines the available updates to verify the deployment.

Activate-Product.ps1 fails with "[Error] The product key is invalid"

  • Check your product key
  • For the deployment of ESU licenses 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.

Activate-Product.ps1 fails with "[Error] The Installation ID (IID) and the Confirmation ID (CID) do not match" or "[Error] Product activation failed (3221549105)"

For the deployment of ESU licenses only: ensure that all of the prerequisites are installed on your ESU eligible device

Activate-Product.ps1 fails with "[Warning] The remote server returned an error: (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
  • No MAK activations are left on your product key
  • The specified WebServiceUrl is incorrect

We're using SCCM to deploy your script. Is there way to obfuscate or hide the ESU key in the logs?

You could create a task sequence (TS) variable that contains the MAK. Then modify the PowerShell script Activate-Product.ps1 to not output the product key and create an instance of a COM object that represents the TS environment to read the variable, eg.

$tsEnv = New-Object -COMObject Microsoft.SMS.TSEnvironment
$productKey = $tsEnv.Value("PKEY")

This would prevent the product key from showing up in the ConfigMgr log files.

Back to Overview

Contributions are welcome

There are many ways to contribute:

  1. Open a new bug report or feature request by opening a new issue here.
  2. Participate in the discussions of issues, pull requests and verify/test fixes or new features.
  3. Submit your own fixes or features as a pull request but please discuss it beforehand in an issue if the change is substantial.
  4. Submit test cases.

Back to Overview

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Back to Overview

Disclaimer

This script code is provided "as is", with no guarantee or warranty concerning the usability or impact on systems and may be used, distributed, and modified in any way provided the parties agree and acknowledge the Microsoft or Microsoft Partners have neither accountability or responsibility for results produced by use of this script.

Back to Overview

activationws's People

Contributors

dadorner-msft avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.