I use a self written tool that uses Outlook Redemption to do some sync between our own data and a some user's calendars on Office365. When running the tool under the admin account on a Windows server, it works perfectly. When running it as a scheduled task under that same account, it does not. It says:
Error in IMAPISession::OpenMsgStore(pbExchangeProviderPrimaryUserGuid): MAPI_E_LOGON_FAILED
Any suggestions?