<commit_before>---

- name: Ensure user _monitorsec is present
  win_user:
    name: _monitorsec
    password: "{{ <PASSWORD> }}"
    state: present
    groups:
      - Users
  ignore_errors: true

# No checksums options
- name: Monitor | download tools
  win_get_url:
    url: "{{ item.u }}"
    dest: "{{ harden_win_temp_dir }}\\{{ item.u | basename }}"<commit_msg>scheduled task standard user: requires 'log on as a batch job'<commit_after>---

- name: Ensure user _monitorsec is present
  win_user:
    name: _monitorsec
    password: "{{ <PASSWORD> }}"
    state: present
    groups:
      - Users
  ignore_errors: true

# FIXME! user must have 'Log on as a batch job' right
# Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment
# if know SID beforehand, can be through secedit. else needs win2k3 support kit
- name: Download win2k3 support kit for ntrights
  get_url:
    url: https://download.microsoft.com/download/8/e/c/8ec3a7d8-05b4-440a-a71e-ca3ee25fe057/rktools.exe
    dest: "{{ harden_win_temp_dir }}\\rktools.exe"
#  win_command: ntrights.exe -u _monitorsec +r SeBatchLogonRight

# No checksums options
- name: Monitor | download tools
  win_get_url:
    url: "{{ item.u }}"
    dest: "{{ harden_win_temp_dir }}\\{{ item.u | basename }}"
{'fraction_non_alphanumeric': 0.11728395061728394, 'fraction_numerical': 0.017746913580246913, 'mean_word_length': 3.4878892733564015, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7280033', 'n_tokens_mistral': 456, 'n_tokens_neox': 440, 'n_words': 124}