def activate():
    cmd = r'cscript C:\Windows\System32\slmgr.vbs /ato'
    return __salt__['cmd.run'](cmd)
Attempt to activate the current machine via Windows Activation
dataset/ETHPy150Open saltstack/salt/salt/modules/win_license.py/activate