%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/win_license.pyo

�
���^c@@s�dZddlmZmZmZddlZddlZddlZej	e
�ZdZd�Z
d�Zd�Zd�Zd	�Zd
�Zd�ZdS(u�
This module allows you to manage windows licensing via slmgr.vbs

.. code-block:: bash

    salt '*' license.install XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
i(tabsolute_importtunicode_literalstprint_functionNulicensecC@stjjj�rtStS(u
    Only work on Windows
    (tsalttutilstplatformt
is_windowst__virtualname__tFalse(((s</usr/lib/python2.7/site-packages/salt/modules/win_license.pyt__virtual__scC@s$d}td|�}|d|kS(u
    Check to see if the product key is already installed.

    Note: This is not 100% accurate as we can only see the last
     5 digits of the license.

    CLI Example:

    .. code-block:: bash

        salt '*' license.installed XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
    u*cscript C:\Windows\System32\slmgr.vbs /dliucmd.runi����(t__salt__(tproduct_keytcmdtout((s</usr/lib/python2.7/site-packages/salt/modules/win_license.pyt	installeds
cC@sdj|�}td|�S(u�
    Install the given product key

    CLI Example:

    .. code-block:: bash

        salt '*' license.install XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
    u.cscript C:\Windows\System32\slmgr.vbs /ipk {0}ucmd.run(tformatR
(RR((s</usr/lib/python2.7/site-packages/salt/modules/win_license.pytinstall1s
cC@sd}td|�S(u{
    Uninstall the current product key

    CLI Example:

    .. code-block:: bash

        salt '*' license.uninstall
    u*cscript C:\Windows\System32\slmgr.vbs /upkucmd.run(R
(R((s</usr/lib/python2.7/site-packages/salt/modules/win_license.pyt	uninstall?s
cC@sd}td|�S(u�
    Attempt to activate the current machine via Windows Activation

    CLI Example:

    .. code-block:: bash

        salt '*' license.activate
    u*cscript C:\Windows\System32\slmgr.vbs /atoucmd.run(R
(R((s</usr/lib/python2.7/site-packages/salt/modules/win_license.pytactivateMs
cC@s d}td|�}d|kS(u�
    Return true if the current machine is licensed correctly

    CLI Example:

    .. code-block:: bash

        salt '*' license.licensed
    u*cscript C:\Windows\System32\slmgr.vbs /dliucmd.runuLicense Status: Licensed(R
(RR
((s</usr/lib/python2.7/site-packages/salt/modules/win_license.pytlicensed[s
cC@s�d}td|�}tjd|tj�}|d
k	r||j�}i|dd6|dd6|dd	6d
|dkd6Sd
S(u�
    Return information about the license, if the license is not
    correctly activated this will return None.

    CLI Example:

    .. code-block:: bash

        salt '*' license.info
    u*cscript C:\Windows\System32\slmgr.vbs /dliucmd.runuTName: (.*)\r\nDescription: (.*)\r\nPartial Product Key: (.*)\r\nLicense Status: (.*)iunameiudescriptioniupartial_keyuLicensediulicensedN(R
tretsearcht	MULTILINEtNonetgroups(RR
tmatchR((s</usr/lib/python2.7/site-packages/salt/modules/win_license.pytinfojs(t__doc__t
__future__RRRRtloggingtsalt.utils.platformRt	getLoggert__name__tlogRR	RRRRRR(((s</usr/lib/python2.7/site-packages/salt/modules/win_license.pyt<module>s							

Zerion Mini Shell 1.0