Consider the following scenario:

Additionally, the Get-MapiVirtualDirectory command generates the following error message:
- You have a computer that is running Microsoft Exchange Server 2013.
- The computer has both the Client Access server (CAS) role and Mailbox role installed, or it has only the CAS role installed.
- You perform a server recovery by using the /m:RecoverServer parameter.

Additionally, the Get-MapiVirtualDirectory command generates the following error message:
WARNING: IIS:/exch1.contoso.com/W3SVC/1/ROOT/mapi wasn't found. Please make sure you've typed it correctly.