code: def get_auditpol_dump():
      '''
      Gets the contents of an auditpol /backup. Used by the LGPO module to get
      fieldnames and GUIDs for Advanced Audit policies.
  
      Returns:
          list: A list of lines form the backup file
  
      Usage:
  
      .. code-block:: python
  
          import salt.utils.win_lgpo_auditpol
  
          dump = salt.utils.win_lgpo_auditpol.get_auditpol_dump()
      '''
      # Just get a temporary file name
      # NamedTemporaryFile will delete the file it creates by default on Windows
      with tempfile.NamedTemporaryFile(suffix='.csv') as tmp_file:
          csv_file = tmp_file.name
  
      cmd = '/backup /file:{0}'.format(csv_file)
      _auditpol_cmd(cmd)
  
      with salt.utils.files.fopen(csv_file) as fp:
          return fp.readlines(f get_auditpol_dump():
      '''
      Gets the contents of an auditpol /backup. Used by the LGPO module to get
      fieldnames and GUIDs for Advanced Audit policies.
  
      Returns:
          list: A list of lines form the backup file
  
      Usage:
  
      .. code-block:: python
  
          import salt.utils.win_lgpo_auditpol
  
          dump = salt.utils.win_lgpo_auditpol.get_auditpol_dump()
      '''
      # Just get a temporary file name
      # NamedTemporaryFile will delete the file it creates by default on Windows
      with tempfile.NamedTemporaryFile(suffix='.csv') as tmp_file:
          csv_file = tmp_file.name
  
      cmd = '/backup /file:{0}'.format(csv_file)
      _auditpol_cmd(cmd)
  
      with salt.utils.files.fopen(csv_file) as fp:
          return fp.readlines()
docs: Gets the contents of an auditpol /backup. Used by the LGPO module to get
      fieldnames and GUIDs for Advanced Audit policies.
  
      Returns:
          list: A list of lines form the backup file
  
      Usage:
  
      .. code-block:: python
  
          import salt.utils.win_lgpo_auditpol
  
          dump = salt.utils.win_lgpo_auditpol.get_auditpol_dump()