This module allows you to manage windows licensing via slmgr.vbs
salt '*' license.install XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Attempt to activate the current machine via Windows Activation
CLI Example:
salt '*' license.activate
Return information about the license, if the license is not correctly activated this will return None.
CLI Example:
salt '*' license.info
Install the given product key
CLI Example:
salt '*' license.install XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Check to see if the product key is already installed.
CLI Example:
salt '*' license.installed XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Return true if the current machine is licensed correctly
CLI Example:
salt '*' license.licensed
Uninstall the current product key
CLI Example:
salt '*' license.uninstall
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.win_license.html