title: NetUserAdd() successful, but user is "invisible"
body: <p>I'm creating a user with the <code>NetUserAdd</code> API. It returns successfully, the user has a User folder and I can see the username with <code>wmic useraccount get name</code>. However, the created user is not visible under the control panel, nor on the logon screen. I assume that I need to add the user to some group but I don't know which or how.</p>
  
  <p>Here is how I create the user:</p>
  
  <pre><code>USER_INFO_1 user_info;
  ZeroMemory(&amp;user_info, sizeof(user_info));
  user_info.usri1_name = userName;
  user_info.usri1_password = password;
  user_info.usri1_priv = USER_PRIV_USER;
  user_info.usri1_flags = UF_SCRIPT | UF_DONT_EXPIRE_PASSWD;
  
  DWORD dwLevel = 1;
  DWORD dwError = 0;
  NET_API_STATUS nStatus = NetUserAdd(NULL, dwLevel, (LPBYTE)&amp;user_info, &amp;dwError);
  </code></pre>
  
  <p>How can I make the user visible on the logon screen?</p>