If Outlook is stuck in offline mode or shows a message called ‘Working offline‘ on the user interface, here is how you can get rid of this problem. Whether you use a Work, School, or regular account, ...
You would have to find the registry keys for it, export them to a .reg file, and use regedit /s regfile.reg to change it.