I am getting a new macos image ready for the macs at my school. I have tested it on two iMacs and neither of them will connect automatically at boot. Once logged in to a local account, it connects automatically and I can log out with it still being connected. Students, however, must be able to login to their network accounts. I have tried removing the network from preferred networks and adding it back which used to fix this in the past but that is no longer working.