%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/modules/ |
Current File : //lib/python2.7/site-packages/salt/modules/win_auditpol.pyc |
� ���^c @@ s_ d Z d d l m Z m Z m Z d d l Z d Z d � Z d d � Z d � Z d � Z d S( uq A salt module for modifying the audit policies on the machine Though this module does not set group policy for auditing, it displays how all auditing configuration is applied on the machine, either set directly or via local or domain group policy. .. versionadded:: 2018.3.4 .. versionadded:: 2019.2.1 This module allows you to view and modify the audit settings as they are applied on the machine. The audit settings are broken down into nine categories: - Account Logon - Account Management - Detailed Tracking - DS Access - Logon/Logoff - Object Access - Policy Change - Privilege Use - System The ``get_settings`` function will return the subcategories for all nine of the above categories in one dictionary along with their auditing status. To modify a setting you only need to specify the subcategory name and the value you wish to set. Valid settings are: - No Auditing - Success - Failure - Success and Failure CLI Example: .. code-block:: bash # Get current state of all audit settings salt * auditpol.get_settings # Get the current state of all audit settings in the "Account Logon" # category salt * auditpol.get_settings category="Account Logon" # Get current state of the "Credential Validation" setting salt * auditpol.get_setting name="Credential Validation" # Set the state of the "Credential Validation" setting to Success and # Failure salt * auditpol.set_setting name="Credential Validation" value="Success and Failure" # Set the state of the "Credential Validation" setting to No Auditing salt * auditpol.set_setting name="Credential Validation" value="No Auditing" i ( t absolute_importt unicode_literalst print_functionNu auditpolc C@ s t j j j � s t d f St S( u'