If you have a Wi-Fi network, and it doesn’t seem to connect unless you login, you need to change the profile.
Symptom: Domain joined computer would not come online unless I logged in as a local user account (domain wasn’t available). Would work fine afterwards, but would disconnect as soon as I logged off.
Resolution: The Wi-Fi network was set to only be a user profile. To change it:
Open the Command Prompt or Powershell as an Administrator