Issue
In PowerShell:
Set-ArchiveLeaver : Error in IMAPISession::OpenMsgStore(pbExchangeProviderPrimaryUserGuid): MAPI_E_FAILONEPROVIDER
ulVersion: 0
Error: Microsoft Exchange is not available. Either there are network problems or the Exchange computer is down for maintenance.
Component: Microsoft Exchange Information Store
ulLowLevelError: 2147746069
ulContext: 1318
At line:1 char:18
+ set-archiveleaver <<<< -mbxalias userexample
+ CategoryInfo : NotSpecified: (:) [Set-ArchiveLeaver], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,QUADROtech.ArchiveLeavers.ArchiveLeaver
In log file:
 |ERROR|P:1536|T:10|MAPIWrapper|Could not connect to Mailbox
EXCEPTION: System.Runtime.InteropServices.COMException (0x8004011D): Error in IMAPISession::OpenMsgStore(pbExchangeProviderPrimaryUserGuid): MAPI_E_FAILONEPROVIDER
ulVersion: 0
Error: Microsoft Exchange is not available. Either there are network problems or the Exchange computer is down for maintenance.
Component: Microsoft Exchange Information Store
ulLowLevelError: 2147746069
ulContext: 1318
 This is because there is no Profile in Outlook.
Solution
Need to add Profile into Outlook and set When starting Microsoft Office Outlook, use this profile: to Always use this profile (not prompt).
Print Friendly, PDF & Email