> How can I ensure that a notice containing legal text is presented to windows users during login?

With the windows agent (Northern.tech builds Enterprise windows agents) you can accomplish this by managing the registry using the databases promise type.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  bundle agent registered_owner
  #@ brief Make the laywers happy by showing their notice to windows users on login
  {
    meta:

      windows::

        "tags"
          slist => { "autorun" };

        "description"
          string => "Ensure the proper leagal notice is displayed to users when they log on.";

    vars:

    databases:

      windows::
      
          "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
          comment => "Ensure legal notice is set",
          database_operation => "create",
          database_rows => { "legalnoticecaption,REG_SZ,Legal Notice" },
          database_type => "ms_registry";

          "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
          comment => "Ensure legal notice is set",
          database_operation => "create",
          database_rows => { "legalnoticetext,REG_SZ,Only authorized personell allowed." },
          database_type => "ms_registry";
  }