Rename the Administrator and Guest accounts

To help protect your infrastructure, rename the Administrator and Guest accounts.

  1. To rename the local Administrator account to user_1, use the following configuration:
    # control-repo/data/nodes/winserv2019.contoso.com.yaml
    ---
    cem_windows::config:
      control_configs:
        c2_3_1_5:
          value: 'user_1'
    Restriction: If you do not specify a name for the Administrator account, the account is renamed to magic by default.
  2. To rename the local Guest account to user_2, use the following configuration:
    # control-repo/data/nodes/winserv2019.contoso.com.yaml
    ---
    cem_windows::config:
      control_configs:
        c2_3_1_6:
          value: 'user_2'
    Restriction: If you do not specify a name for the Guest account, the account is renamed to pumpkin by default.