code: def _get_all_groups():
      '''
      A helper function that gets a list of group objects for all groups on the
      machine
  
      Returns:
          iter: A list of objects for all groups on the machine
      '''
      with salt.utils.winapi.Com():
          nt = win32com.client.Dispatch('AdsNameSpaces')
      results = nt.GetObject('', 'WinNT://.')
      results.Filter = ['group']
      return resultf _get_all_groups():
      '''
      A helper function that gets a list of group objects for all groups on the
      machine
  
      Returns:
          iter: A list of objects for all groups on the machine
      '''
      with salt.utils.winapi.Com():
          nt = win32com.client.Dispatch('AdsNameSpaces')
      results = nt.GetObject('', 'WinNT://.')
      results.Filter = ['group']
      return results
docs: A helper function that gets a list of group objects for all groups on the
      machine
  
      Returns:
          iter: A list of objects for all groups on the machine